Possible Duplicate:
What is object serialization?
Want to get idea behind the serialization and de-serialization of object.A simple example would be appreciated.
Serialization is a mechanism of converting the state of an object into a byte stream. Deserialization is the reverse process where the byte stream is used to recreate the actual Java object in memory. This mechanism is used to persist the object. The byte stream created is platform independent.
For serializing the object, we call the writeObject() method of ObjectOutputStream class, and for deserialization we call the readObject() method of ObjectInputStream class. We must have to implement the Serializable interface for serializing the object.
Serialization refers to the process of converting a data object (e.g., Python objects, Tensorflow models) into a format that allows us to store or transmit the data and then recreate the object when needed using the reverse process of deserialization.
In computing, serialization (US and Oxford spelling) or serialisation (UK spelling) is the process of translating a data structure or object state into a format that can be stored (for example, in a file or memory data buffer) or transmitted (for example, over a computer network) and reconstructed later (possibly in a ...
serialization - Turn data into a stream of bytes
deserialization - Turn a stream of bytes back into a copy of the original object.
The objects created in java exists only while Java Virtual Machine is running...
Serialization - saving the created objects in the sequence of bytes...
Deserialization - Retrieving those saved bytes into the form of original object..
This article helps you to understand more... serialization
Serialisation is the process of turning an object into a series of bytes for transferring or storing. Deserialization those same bytes and turns them back into objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With