Serialization is the process of converting a objects into a stream of bytes.
Serialization - Turn data into a stream of bytes.
De-Serialization - Turn a stream of bytes back into a copy of the original object.
A java class can be saved in byte stream with a version id and can be invoked again. Saving class in byte stream is called Serialization and fetching that class is called Deserialization.. To achieve this, a class has to implementjava.io.Serializable interface.
No comments:
Post a Comment