RMI or Remote Method Invocation is that Java system which is used to create the applications which are distributed object based. Given formula could be used to express the RMI that uses object serialization extensively.
Remote method invocation = Sockets + Object Serialization + Some Utilities
Compiler & RMI registry are utilities to generate the skeletons & stubs.
If you are aware of RMI then you would definitely know that it is a very simple task to
Object serialization is that mechanism which is considered useful in all programs which save objectís state to the file and then reads objects for reconstruction of the state of program, or using the sockets to send object at the network. Class serialization could be done very easily by using class implement java.io.Serializable interface. It is marker interface which has no methods to be implemented. This is used for informing the JVM (Java Virtual Machine) which one wants an object to get serialized.