Serialization & Deserialization in Java

The process of converting an object from java supported form to file supported or network supported form and saving state of the object in a file is called serialization .

The process of sending an object as a sequence of bytes that includes the object’s data as well as information about the object’s type and the types of data stored in the object ,across a network line and saving state of the object in a file is called serialization.

The ObjectOutputStream class is used to serialize an Object.

DeSerailization :

The process of converting an object from file supported or network supported form to java supported form and reading state of the object from a file is called deserialization.

The process of reading an object as a sequence of bytes that includes the object’s data as well as information about the object’s type and the types of data stored in the object ,across a network line and reading state of the object from a file is called deserialization.

The ObjectInputStream class is used to de-serialize an Object.

Both serialization and de-serialization process are JVM independent i.e. an object can be serialized on one platform and deserialized on an entirely different platform.

About the Author

Dear Friends,
I am A.K.M. .This online journal ai1tutorial.com is a humble effort from my side to all students and professionals who want to learn computer science related technologies.I am not a professional blogger and I write posts in this blog only in my leisure time.I may not be 100% perfect in all my posts,but your review comments can surely help me to make it 100% perfect.