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

For an example, if we have some variable in run method, and we created one or more threads. Does all threads will share the same variable or a copy of variable is created for each thread??

1 Answers  


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

0 Answers  


Why a component architecture for the java platform?

0 Answers  


If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?

8 Answers   HeadStrong,


What is source and listener?

1 Answers  






advantage of thread?

3 Answers   HCL,


What is rmic?

4 Answers  


What must a class do to implement an interface?

0 Answers  


What are synchronized methods and synchronized statements?

2 Answers   Adobe,


whats is mean by filter?

1 Answers   SolutionNET,


how to use debug in my elipse to solve problems that exist in my project

0 Answers   SAP Labs, TCS,


How task's priority is used in scheduling?

0 Answers   HCL,


Categories