What things are required for a class that implements Serializable?

Tim Rohaly

A class that implements Serializable must also:

  • Have access to a no-argument constructor in its first non-serializable superclass
  • Identify non-serializable data members using the transient keyword or explicitly mark data members as serializable using the serialPersistentFields member.