InterviewSolution
| 1. |
Write A Program To Show The Remote Interface Using Rmi? |
|
Answer» Remote INTERFACE allows the extension of the interface of java.rmi.Remtoe. This interface EXTENDS it non-remotely using the condition that this extend the interface when all the methods used are also extended in the interface that satisfy all the requirements of a remote method declaration. The example CODE shows the remote interface that is used in GENERAL: public interface Bank extends java.rmi.Remote The class of this extends the java.rmi.Remote to inherit the behavior and properties used by this specified class.This also uses several other class OBJECTS for example: java.rmi.server.RemoteObject and java.rmi.server.RemoteServer. Remote interface allows the extension of the interface of java.rmi.Remtoe. This interface extends it non-remotely using the condition that this extend the interface when all the methods used are also extended in the interface that satisfy all the requirements of a remote method declaration. The example code shows the remote interface that is used in general: public interface Bank extends java.rmi.Remote The class of this extends the java.rmi.Remote to inherit the behavior and properties used by this specified class.This also uses several other class objects for example: java.rmi.server.RemoteObject and java.rmi.server.RemoteServer. |
|