#
7. is an object that resides on the server host, communicates with the stub and the actual server object.
a. Server object interface
b. Server implementation
c. RMI Registry
d. Server stub
e. Server Skeleton
#
8. Which of the following statements are true when passing arguments in a remote method call.
a. Primitive data types, such as char, int, double, or boolean, are passed by value like a local call.
b. Local object types, such as java.lang.String, are also passed by value, but this is completely different from passing
an object parameter in a local call. Any object can be used as a parameter in a remote call as long as it is serializable.
The stub serializes the object parameter and sends it in a stream across the network. The skeleton deserializes the
stream into an object.
c. Remote object types are passed differently from local objects. When a client invokes a remote method with a
parameter of a remote object type, the stub of the remote object is passed. The server receives the stub and
manipulates the parameter through it.
d. When a client invokes a remote method with parameters, passing the parameters is handled by the stub and the
skeleton.
#
9. provides the naming services for the server to register the object and for the client to locate the object.
a. Server object interface
b. Server implementation
c. RMI Registry
d. Server stub
e. Server Skeleton
#
10. Each remote object has a unique name identified by an URL with the protocol rmi as follows:
a. rmi://host:port/name
b. //host:port/name
c. http://host:port/name
d. http://host/name
#
Section 40.3 Developing RMI Applications
11. To register a remote object o with a name t at port 7000 on host panda.armstrong.edu, use
a. Naming.bind(“rmi://panda.armstrong.edu:7000/t”, o);
b. Naming.rebind(“rmi://panda.armstrong.edu:7000/t”, o);
c. Name.rebind(“rmi://panda.armstrong.edu:7000/t”, o);
d. Name.bind(“rmi://panda.armstrong.edu:7000/t”, o);
#
12. To locate a remote object with a name t at port 7000 on host panda.armstrong.edu, use
a. Remote remoteObj = Naming.lookup(“rmi://panda.armstrong.edu:7000/t”);
b. Remote remoteObj = Name.lookup(“rmi://panda.armstrong.edu:7000/t”);