1.

Give Few Examples Of Incompatible Changes In Java Serialization?

Answer»
  • CHANGING implementation from Serializable to Externalizable INTERFACE,
  • Deleting an existing Serializable field,
  • Changing non-transient field to transient, non-static to static,
  • Changing the field type,
  • Updating the CLASS PACKAGE.
  • Modifying the writeObject() / readObject() method, we MUST not modify these methods, though adding or removing is a compatible change.



Discussion

No Comment Found