Explain the methods of Naming class, rebind( ) and lookup()?



Explain the methods of Naming class, rebind( ) and lookup()?..

Answer / janet

rebind()of the Naming class(found in java.rmi) is used
to update the RMI registry on the server machine.
Naming.rebind("AddServer",AddServerImpl);
lookup() of the Naming class accepts one argument , the
rmi URL and returns a reference to an object of type
AddServerImpl.

Is This Answer Correct ?    26 Yes 7 No

Post New Answer

More Advanced Java Interview Questions

What are the oops concept?

0 Answers  


Define prototype?

0 Answers  


What is the difference between RMI and Socket?

2 Answers  


How to determine SGA site?

0 Answers   Wipro,


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

0 Answers   Ducat,






How will the struts know which action class to call when you submit a form?

6 Answers   HeadStrong,


if i know the lenght of collection in hand, should I use Array or Arraylist? justify

1 Answers   iTrust,


how we can implement interface in jsp ?

2 Answers   Google,


Why does the tag url-encode javascript and mailto links?

0 Answers  


In real time project when will we use Abstract class. and what are the difference between abstract and interface.

6 Answers   DELL, FCS, Polaris, Tanla Solutions, TCS,


Why use POJO when I can use hashmap

0 Answers   Infotech,


Can you write Java code for declaration of multiple inheritance in Java ?

6 Answers   Kingshir, Oracle,


Categories