Question: how rmi is implemented in java?
Answer: An RMI server creates an instance of each remote object and binds each instance to a name in the rmiregistry. An RMI server can be self-sufficient, in that it can implement a main method, thus freeing itself from a dependency on another class in order to execute.