When writing an applet or an application that uses remote objects, the programmer needs to be aware of the RMI system's client visible interfaces. The java.rmi.Remote interface serves to identify all remote objects, all remote objects must directly or indirectly implement this interface. Note that all remote interfaces must be declared public .
All remote exceptions are subclasses of java.rmi.RemoteException .
This allows interfaces to handle all types of remote exceptions and to distinguish local exceptions, and exceptions specific to the method, from exceptions thrown by the underlying distributed object mechanisms. The actual exception or error that occurred. Create a remote exception with the specified string. Produce message, including message from any nested exception. The URL consists of protocol, host, port, and name fields.