Quizzes Index
By March 2000
This quiz offers a way to test your knowledge of the Remote Method Invocation API from the recent Fundamentals of RMI Short Course.
1. What interface must all interfaces for remote services extend?
java.rmi.RemoteService
java.rmi.Remotable
java.rmi.server.Remote
java.rmi.Remote
2. When defining a remote interface, what exception is typically thrown as part of each method signature?
IOException
RemoteException
RemoteCollisionException
RemoteControlException
3. From which of the following locations can an RMI server NOT load classes?
4. How are remote object parameters transferred between client and server?
5. Which of the following is no longer true for the RMI implementation that comes with the Java 2 platform?
Remote
6. How can a client prepare itself for callbacks from the RMI server?
java.rmi.server.UnicastRemoteObject
UnicastRemoteObject.exportObject()
7. To help with distributed garbage collection, how can a remote object be notified when there are no longer any clients holding a reference?
Unreferenced
Deferenced
ExpiredLease
8. What is the name for the remote object proxy that is used by the client?
RemoteRef
MarshaledObject
Stub
9. Which of the following tools is used to generate the stubs and skeletons for a remote service?
javac
java
rmiregistry
10. Which of the following would not locate the remote "Calculator" service on machine www.jguru.com (with an IP address is 216.217.9.172), where the standard RMI registry was used?
Naming.lookup("rmi://www.jguru.com/Calculator");
Naming.lookup("rmi://216.217.9.172/Calculator");
Naming.lookup("rmi://www.jguru.com:1199/Calculator") ;
Naming.lookup("www.jguru.com:1099/Calculator");