帮忙解答一道题

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
展开
 我来答
奔波的狼
2008-01-04 · TA获得超过150个赞
知道小有建树答主
回答量:231
采纳率:0%
帮助的人:278万
展开全部
(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)
kaiyassng3825
2008-01-04 · TA获得超过147个赞
知道答主
回答量:80
采纳率:0%
帮助的人:0
展开全部
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
wtccut
2008-01-04 · TA获得超过346个赞
知道答主
回答量:79
采纳率:0%
帮助的人:0
展开全部
选择B,
在试图将远程对象绑定到注册程序之前,没有启动RMI注册程序将产生java.rmi.ConnectException异常,从而拒绝连接到注册程序。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式