Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

few doubts on serialization

 
Ayub ali khan
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have read about serialization (saving the state of object on persistant store(network, file etc..)). I want to have a deeper understanding of few concepts which work behind Serialization.

I understand we implement serializable interface to achieve serialization. I appreciate if any one could help me in understanding this.

Few questions about serialization.

What assures us that the Object is serialized? (implementing serializable infterface and using objectOutputStream or objectInputStream assures it? )
What are the things we need to keep in mind while serialization?
What are the most common issues we face during serialization and how to overcome them?
What are the sequence of steps that happen when object is Serialized?

Thank you.

Ayub
[ May 31, 2006: Message edited by: Ayub ali khan ]
 
sanjeev mehra
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
serialization is a process to store an object in secondary storage device, u know that, in simple term its storing information (structure) of an object (class) with its (class level) variable's value. Primitive data type (int, char,....) are by default eligible for this, and if your (main) object have reference to another (contained) object that object should be serializable, by implementing serializable interface or by other mean. In case object contains reference to another object and that object is not serializable then while deserialization (when you are reading object from secondary storage to memory) that (contained) object included in (main) object will be available but the value of (contained) object will be lost, because it was never stored.
other thread
 
Ayub ali khan
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Sanjeev.

I will do some further research on this topic. I apprecaite your help !!

Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!