Java Technology Home Page
A-Z Index

Java Developer Connection(SM)
Quizzes

Downloads, APIs, Documentation
Java Developer Connection
Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide
Print Button
 
Quizzes Index

Fundamentals of RMI
Quiz
By jGuru

(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?
     A. java.rmi.RemoteService
     B. java.rmi.Remotable
     C. java.rmi.server.Remote
     D. java.rmi.Remote
  2. When defining a remote interface, what exception is typically thrown as part of each method signature?
     A. IOException
     B. RemoteException
     C. RemoteCollisionException
     D. RemoteControlException
  3. From which of the following locations can an RMI server NOT load classes?
     A. The CLASSPATH of an RMI client
     B. The CLASSPATH of the RMI server
     C. From an HTTP or FTP server on the network at a location specified by the client
     D. From an HTTP or FTP server on the network at a location specified by the server
  4. How are remote object parameters transferred between client and server?
     A. A proprietary protocol that is determined by the vendor of the RMI implementation
     B. Standard Java Serialization
     C. Internet Inter-ORB Protocol (IIOP)
     D. Java Remote Method Protocol (JRMP)
  5. Which of the following is no longer true for the RMI implementation that comes with the Java 2 platform?
     A. Services must extend the Remote interface
     B. The skeleton file must be present for the server
     C. The server must be running before its services can be used
     D. All of the above are no longer true
  6. How can a client prepare itself for callbacks from the RMI server?
     A. Extend java.rmi.server.UnicastRemoteObject
     B. Call UnicastRemoteObject.exportObject()
     C. Either of the above will work
     D. Neither of the above will work
  7. To help with distributed garbage collection, how can a remote object be notified when there are no longer any clients holding a reference?
     A. There is no way to be notified
     B. By implementing the Unreferenced interface
     C. By implementing the Deferenced interface
     D. By implementing the ExpiredLease interface
  8. What is the name for the remote object proxy that is used by the client?
     A. Skeleton
     B. RemoteRef
     C. MarshaledObject
     D. Stub
  9. Which of the following tools is used to generate the stubs and skeletons for a remote service?
     A. javac
     B. rmic
     C. java
     D. 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?
     A. Naming.lookup("rmi://www.jguru.com/Calculator");
     B. Naming.lookup("rmi://216.217.9.172/Calculator");
     C. Naming.lookup("rmi://www.jguru.com:1199/Calculator") ;
     D. Naming.lookup("www.jguru.com:1099/Calculator");


Print Button
[ This page was updated: 27-Sep-2000 ]
Products & APIs | Developer Connection | Docs & Training | Online Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Glossary | Feedback | A-Z Index
For more information on Java technology
and other software from Sun Microsystems, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first.
Sun Microsystems, Inc.
Copyright © 1995-2000 Sun Microsystems, Inc.
All Rights Reserved. Terms of Use. Privacy Policy.