In fact, the idea of serialization is to 'freeze' the object state, transfer the object state (write to disk, transmit over the network, etc.), and then 'unfreeze' the state to regain the available Java objects.
Java object serialization is one of a set of groundbreaking features introduced in JDK 1.1, used as a state of Java object Converted to byte array for storage or transmission mechanism, in the future, the byte array can still be converted back to the original state of the Java object.