Serialization

Serialization ignores static variable and transient variables. Why?

Questions by jyoti.bhandari   answers by jyoti.bhandari

Showing Answers 1 - 3 of 3 Answers

meravi84

  • May 21st, 2009
 

Serialization is a techniques which maintain the state of the object and static variables are class variable, they do not define the state of an object. so serialization ignore this.

Transient variable means which are not persisted. When we define a variable transient it means it does not need to save, so serialization ignore this also

  Was this answer useful?  Yes

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