Ajit Amitav Das
posted 11 years ago
The doc on serializable is pretty good about what works and what doesn't. I wouldn't attempt to reproduce all the rules here. But you did hit one good point - transient variables are not serialized by default. You can override readObject and writeObject to override the default rules, making just about anything possible.