InterviewSolution
| 1. |
Write A Program To Show The Distributed Object Model Using Rmi? |
|
Answer» To implement the distributed object model a class is required that implements a remote interface extending the functionality of java.rmi.Remote and other classes such as java.rmi.server.UnicastRemoteObject. The implementation then take the RESPONSIBILITY for exporting the object having the CORRECT use of remote semantics provided using hashCode, equals, and toString METHODS that are INHERITED from the java.lang.Object class. The code is given below as: public void withdraw(FLOAT amount) throws OverdrawnException, To implement the distributed object model a class is required that implements a remote interface extending the functionality of java.rmi.Remote and other classes such as java.rmi.server.UnicastRemoteObject. The implementation then take the responsibility for exporting the object having the correct use of remote semantics provided using hashCode, equals, and toString methods that are inherited from the java.lang.Object class. The code is given below as: public void withdraw(float amount) throws OverdrawnException, |
|