GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  Programming  >  Java

 Print  |  
Question:  Serialization

Answer: Serialization ignores static variable and transient variables. Why?


May 05, 2009 23:09:49 #1
 meravi84   Member Since: May 2008    Total Comments: 1 

RE: Serialization
 
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
     

 

Back To Question