There are four basic things you must do when you are making a class serializable. They are:
- Implement the Serializable interface.
- Make sure that instance-level, locally defined state is serialized properly.
- Make sure that superclass state is serialized properly.
- Override equals( ) and hashCode( ).
Posted in: