Clarification on Serializability.
1 posts in topic
Flat View  Flat View

Posted By:   Alfred_Wong
Posted On:   Wednesday, November 27, 2002 05:32 AM


I was wondering if somebody could clarify this for me. From my understanding is that an object that implements the serializable interface has all its states saved. i.e. all of its instance variables. Therefore, if you declare a variable that references to an object in a method does that object need to be serializable too in order for that whole class to be serializable. Or it won't matter because it doesn't effect the state of the object in general?


Re: Clarification on Serializability.

Posted By:   Lasse_Koskela  
Posted On:   Wednesday, November 27, 2002 09:33 AM

Only the instance/member variables need to be serializable, not temporary variables used (and created) inside a method.
About | Sitemap | Contact