Designing RMI Applications

Making a Class Serializable

  1. Implement the Serializable interface.
    1. Add implements Serializable to class definition.
  2. Make sure that instance-level locally defined state is serialized properly.
  3. Make sure that superclass state is properly serialized.
  4. Override equals() and hashCode().

José M. Vidal .

28 of 49