RMI Question:

Download Job Interview Questions and Answers PDF

When is AlreadyBoundException thrown and by which method?

RMI Interview Question
RMI Interview Question

Answer:

AlreadyBoundException is thrown by bind(String name) method when a remote object is already registered with the registry with the same name.
Note: rebind method doesn't throw AlreadyBoundException because it replaces the existing binding with same name.

Download RMI Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between using bind() and rebind() methods of Naming Class?How to get all the registered objects in a rmiregistry?