• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

serialization

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
methods are *never* serialized - the state of a object is preserved by saving the fields and their values.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic