File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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.
It is sorta covered in the
JavaRanch Style Guide
Size of serialized classes
Serialszing method of superclass which is non serilizable
How the Marker Interfaces provides the functionality to its object implementation?
ActionForm is serialized
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013