RMI Programming: Given the following remote interface definition implement the interface and write the client and server applications using the steps described in this chapter. You may start the registry programmatically as I did in my example or experiment with starting it externally using the rmiregistry command.
1 import java.rmi.*; 2 3 interface RemoteCalculatorInterface extends Remote { 4 public double add(double a, double b) throws RemoteException; 5 public double sub(double minuend, double subtrahend) throws RemoteException; 6 public double div(double dividend, double divisor) throws RemoteException; 7 public double mul(double multiplier, double multiplicand) throws RemoteException; 8 }