A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: Aug 01, 2006
Jan 09, 2007 07:44:00
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.
Joined: Dec 13, 2006
Jan 09, 2007 07:47:00
methods are *never* serialized - the state of a object is preserved by saving the fields and their values.
I agree. Here's the link:
ActionForm is serialized
Serialszing method of superclass which is non serilizable
Size of serialized classes
How the Marker Interfaces provides the functionality to its object implementation?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014