Thursday, September 13, 2007

Serialization in Static and Transient Variable

If your object contains a Transient variable and if you write that object

into the file then on retreiving back the object from file you will get the

value corresponding to Transient variable as null

Also static variables are not serialized as they are not part of object state

No comments: