Principles of RMI :
The RMI architecture is based on a very important principle which states that the definition of the behavior and the implementation of that behavior, are separate concepts.
RMI allows the code that defines the behavior and the code that implements the behavior to remain separate and to run on separate JVMs.