You are here : Home / Core Java Tutorials / Serialization And Deserialization Tutorial in java
Let’s start serialization tutorial by understanding what is Serialization. Serialization is process of converting object into byte stream.
Serialized object (byte stream) can be:
>Transferred over network.
>Persisted/saved into file.
>Persisted/saved into database.
Once, object have have been transferred over network or persisted in file or in database, we could deserialize the object and retain its state as it is in which it was serialized.
In series of Serialization tutorial we’ll read following topics in depth with programs >
Serializing & DeSerializing >
Customizing Serialization process by implementing Serializable and Externalizable/ Difference between them >
Customize Serialization process by defining writeObject() method & DeSerialization process by defining readObject() method
Serialize and DeSerialize object by implementing Externalizable interface- override writeExternal() and readExternal() methods
Constructor call during DeSerialization >
Serializing and DeSerializing Singleton >
Preserving Singleton’s state during DeSerialization >
Can you Serialize Singleton class such that object returned by Deserialization process is in same state as it was during Serialization time
Serializing and DeSerializing primitive data types >
What values will int and Integer will be initialized to during DeSerialization process if they were not part of Serialization
Serializing class of Collection Api’s >
Static and Transient are not serialized >
Significance of using Static and Transient member variables - Static and Transient are not serialized in java
compatible and incompatible changes in Serialization and deSerialization >
Deep copy in java using Serialization and Deserialization >
More about Serialization >
If member of class does not implement Serializable interface - than NotSerializableException is thrown.
Serialization Interviews >