Interface implementation file: addserverimpl.java
import java.rmi.*;
import java.rmi.server.*;
public class addserverimpl extends UnicastRemoteObject
implements addserverintf
{
public addserverimpl() throws RemoteException
{
}
public double add(double d1,double d2) throws RemoteExceptionn
{
return d1+d2;
}
public double subtract(double d1,double d2) throws RemoteExceptionn
{
return d1-d2;
}
public double multiply(double d1,double d2) throws RemoteExceptionn
{
return d1*d2;
}
public double devide(double d1,double d2) throws RemoteExceptionn
{
return d1/d2;
}
}
Interface File: addserverintf.java << Previous
Next >>Client Program: addclient.java
Our aim is to provide information to the knowledge seekers.