Chapter 13: Problem 2
State whether each of the following is true or false. If false, explain why. a) Not starting the RMI registry before attempting to bind the remote object to the registry results in a RuntimeException refusing connection to the registry. b) Every remote method must be part of an interface that extends java.rmi.Remote. c) The stubcompiler creates a stub class that performs the networking which allows the client to connect to the server and use the remote object’s methods. d) Class UnicastRemoteObject provides basic functionality required by remote objects. e) An object of a class that implements interface Serializable can be registered as a remote object and receive a remote method call. f) All methods in a Remote interface must have a throws clause indicating the potential for a RemoteException. g) RMI clients assume that they should connect to port 80 on a server computer when attempting to locate a remote object through the RMI registry. h) Once a remote object is bound to the RMI registry with method bind or rebind of class Naming, the client can look up the remote object with Naming method lookup. i) Method find of class Naming interacts with the RMI registry to help the client obtain a reference to a remote object so the client can use the remote object’s services.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.