Java / Java Serialization
Give more examples of compatible changes in Java serialization.
Adding a new field will not affect serialization. The newly added field will be set to its default values when the object of an older version of the class is unmarshaled.
Changes In access modifiers such as private, public, protected or default is compatible since they are not reflected in the serialized object stream.
Changing a transient field to a non-transient field, static to non-static are compatible changes.
Adding or removing writeObject()/readObject() methods.
More Related questions...