This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Serialization -- reference variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serialization -- reference variables" Watch "Serialization -- reference variables" New topic
Author

Serialization -- reference variables

karimkhan pathan
Ranch Hand

Joined: Jul 14, 2008
Posts: 86
hi all ,

When a object is serialized the refernce variables which refer the object will serialize or not ?




karim
Bupjae Lee
Ranch Hand

Joined: May 14, 2007
Posts: 107
All non-transient non-static field will be serialized, both primitive type and reference type.

If non-transient non-static reference type field is referring non-serializable object, exception occurs.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serialization -- reference variables