RMI Remote Interface
In setting up an RMI client and server, the starting point is the interface. This interface gives specifications of all the methods which reside on the server and are available to be called by the client.
This interface is a subclass of the Remote interface in the Java rmi package, and must available to the compiler on both the client and server.
Example: A server whose object will have one method, sayHello(), which can be called by the client:public interface Hello extends java.rmi.Remote{ String sayHello() throws java.rmi.RemoteException;}