This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "serialization" Watch "serialization" New topic
Author

serialization

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

hey,

I have a class in which some methods are to be serialized and I don't want to serialze some of them. So what should I do.

As far as I know TRANSIENT is for varialbles only. But I do not know, by making a methods STATIC We can stop it from being serialized.

Regards,
rahul.
Ajay Singh
Ranch Hand

Joined: Dec 13, 2006
Posts: 182
methods are *never* serialized - the state of a object is preserved by saving the fields and their values.
 
jQuery in Action, 2nd edition
 
subject: serialization
 
Similar Threads
Serialszing method of superclass which is non serilizable
How the Marker Interfaces provides the functionality to its object implementation?
ActionForm is serialized
Size of serialized classes
Serializable