1 //The foo remote interface 2 //extends only the Remote interface3 //and exposes the remote methods4 import java.rmi.Remote ;5 import java.rmi.RemoteException ;6 7 public interface FooRemoteInterface extends Remote {8 9 //This method is remote10 public Integer myMethod() throws RemoteException ; 11 12 }13