站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v6.0, Java 2 SDK 英文文档

Using Serialization with Evolution - JDK 5 Documentation v6.0, Java 2 SDK 英文文档

blue bar

Using Serialization with Evolution

blue bar

Abstract

Under certain circumstances, when Java objects use serialization to store objects, the version of the class reading the data could be different from the version of class that wrote that data.

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

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

blue bar

Additional Information

Source Files
Running the Example
List of Examples
blue bar