Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff9c8e3

Browse files
Done
1 parent d700710 commit ff9c8e3

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed
Binary file not shown.
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import java.rmi.*;
2+
import java.rmi.server.*;
3+
4+
public class RIImplement extends UnicastRemoteObject implements RemoteInterface
5+
{
6+
RIImplement() throws RemoteException
7+
{
8+
super();
9+
}
10+
public int add(int x,int y)
11+
{
12+
return x+y;
13+
}
14+
}
Binary file not shown.
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java.rmi.*;
2+
3+
public interface RemoteInterface extends Remote
4+
{
5+
//for now, i will be taking add method as my base method to represent RMI
6+
public int add(int x, int y) throws RemoteException;
7+
}

0 commit comments

Comments
 (0)