A previously saved handle has to be retrieved from an EJBObject named 'bookEJBObject'. The following remote interface has been written to restart the processing for that particular request: 1. ObjectInputStream stream = 2. newObjectInputStream(new FileInputStream(fileName)); 3. 4. Handle bookHandle = (Handle) stream.readObject(); 5. 6. BookRemoteInterfacebookEjbObject = (BookRemoteInterface) XX() ; Which of the following should be substituted to Method XX() on line 6?
Correct Answer: javax.rmi.PortableRemoteObject.narrow(bookHandle.getEJBObject(), BookRemoteInterface.class);
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions