Serialization and Evolution Serialization and Evolution

Abstract

When Java objects use serialization to store objects, the potential arises that the version of the class reading the data is different from the version of class that wrote that data.

This example demonstrates some of the compatible changes that Serialization handles without class-specific methods.

As with all examples dealing with evolution, the evolved class (AClass) must define a serialVersionUID field that is obtained using the command serialver on the original class (AClass).



For more information: