Java RMI
package examples.hello; import java.rmi.Remote; import java.rmi.RemoteException; public interface Hello extends Remote { String sayHello() throws RemoteException; }
RemoteException
since remote calls can fail due to network problems.public
.Hello
), not the implementation type (i.e.,
HelloImpl
).3 of 22