admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Serialization and Deserialization

Serialization means ability to store the status of object in a file. That means "Writing data to the file".

Example: In hadoop, the data should be travelled from one node to another node over the network using serialization only. Not only in hadoop when ever  the data is transferred the data should be serialized.

Deserialization of data also can be performed. Deserialization means "Reading into object from file or stream".

 

 

More Details:

Classes ObjectInputStream and ObjectOutputStream are high-level streams that contain the methods for serializing and deserializing an object.

 

TheObjectOutputStream class contains many write methods for writing various data types, One of the popular method is   writeObject(Object x).

The above method serializes an Object and sends it to the output stream.

TheObjectInputStream class contains the following method for deserializing an object −readObject() : This method will return Object.

Published By : asvitha chunduru
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin