It's not a secret anymore!*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: serialization
 
Similar Threads
ActionForm is serialized
Size of serialized classes
How the Marker Interfaces provides the functionality to its object implementation?
Serialszing method of superclass which is non serilizable
Serializable