Serialization in Java is a process of converting the state of an object into a byte stream that can be sent across a NETWORK, or it can be saved as a file.
The reverse process is CALLED as deserialization that means converting a byte stream into an object.
The byte stream in the process is platform independent or JVM independent.
We can use java.io.Serializable interface to CREATE an object serializable. This interface is a marker interface, which does not contain any DATA member or METHOD.
The two classes ObjectInputStream and ObjectOutputStream implement serialization in Java.