RMI Question:

Download Job Interview Questions and Answers PDF

What is PortableRemoteObject.narrow() method and what is used for?

RMI Interview Question
RMI Interview Question

Answer:

Java RMI-IIOP provides a mechanism to narrow the the Object you have received from from your lookup, to the appropriate type. This is done through the javax.rmi.PortableRemoteObject class and, more specifically, using the narrow() method.

Download RMI Interview Questions And Answers PDF

Previous QuestionNext Question
What does the exportObject of UnicastRemoteObject do?In a RMI Client Program, what are the excpetions which might have to handled?