What is the serialization?
Serialization is a process of converting an object into byte stream which can be stored in persistent storage area like file system or database and can occur over a network.This persisted object can be converted back,called a process of deserialization, to restore original object. A java.io.Serailizable interface provides syntactical approach to do serialization.This interface does not contain any method,also known as marker interface.
Object serialization is necessary for:
-Java RMI, while sending messages to a remote object,it is necessary to transport arguments to remote object and return values.
-Java Beans, state information of object is stored and later recovered when needed.
Object serialization is necessary for:
-Java RMI, while sending messages to a remote object,it is necessary to transport arguments to remote object and return values.
-Java Beans, state information of object is stored and later recovered when needed.