A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Serialization -- reference variables
Joined: Jul 14, 2008
Jan 09, 2010 03:13:58
hi all ,
When a object is serialized the refernce variables which refer the object will serialize or not ?
Joined: May 14, 2007
Jan 09, 2010 07:17:26
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:
subject: Serialization -- reference variables
No. of Objects & Reference Variables
What is thread-local variable
whats the difference between Objects and reference variables?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014