Serialization Process

Explain the use of serialization process in real time projects?

Questions by narayanamsaideva

Editorial / Best Answer

Sarje  

  • Member Since Aug-2009 | Aug 28th, 2009


Serialization is the process of writing the state of an object to a byte stream. This is useful when you want to save the state of the object (content of the object) to a persistent storage area, such a file.
For example if you want to maintain record of the temprature on a particular place at every hour then you can serialize your object and save the temprature at every hour in a file.
Only an object that implements the java.io.Serializable interface can be saved.

Showing Answers 1 - 9 of 9 Answers

Sarje

  • Aug 28th, 2009
 

Serialization is the process of writing the state of an object to a byte stream. This is useful when you want to save the state of the object (content of the object) to a persistent storage area, such a file.
For example if you want to maintain record of the temprature on a particular place at every hour then you can serialize your object and save the temprature at every hour in a file.
Only an object that implements the java.io.Serializable interface can be saved.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions