帮忙解答一道题
Whatstatementistrue?(a)RMIregistryhastobestartedbeforeattemptingtobindtheremoteobject...
What statement is true?
(a) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a RuntimeException will be cast.
(b) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a java.rmi.ConnectException will be cast.
(c) Clients don’t have to start RMI registry before attempting to bind the remote object to the registry
(d) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a NullPointerException will be cast.
Select one right answer 展开
(a) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a RuntimeException will be cast.
(b) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a java.rmi.ConnectException will be cast.
(c) Clients don’t have to start RMI registry before attempting to bind the remote object to the registry
(d) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a NullPointerException will be cast.
Select one right answer 展开
展开全部
(a) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a RuntimeException will be cast. //运行时抛出异常
(b) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a java.rmi.ConnectException will be cast. //如果拒绝远程主机对连接的远程方法调用,则抛出 ConnectException。
(c) Clients don’t have to start RMI registry before attempting to bind the remote object to the registry //不能注册
(d) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a NullPointerException will be cast. //name为null时抛出异常NullPointerException
我选(a)
(b) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a java.rmi.ConnectException will be cast. //如果拒绝远程主机对连接的远程方法调用,则抛出 ConnectException。
(c) Clients don’t have to start RMI registry before attempting to bind the remote object to the registry //不能注册
(d) RMI registry has to be started before attempting to bind the remote object to the registry. Otherwise, a NullPointerException will be cast. //name为null时抛出异常NullPointerException
我选(a)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询