public class ExampleImpl extends UnicastRemoteObject implements Example { public ExampleImpl () throws RemoteException { } public void printString (String text) { System.out.println (text); } }
Interface used to mark remotely accessible object
Inheritance used to export the instance
Constructor can return exception