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

Externalization with an Externalizable SuperClass - JDK 5 Documentation v6.0, Java 2 SDK 英文文档

blue bar

Externalization with an Externalizable SuperClass

blue bar

Running the Example

Complete the following procedure to compile and run this example:

  1. From yourbasedir/objectserializationexamples/ExternalizableSuperclass, compile the Savesuper.java file using JDKTM 1.1 or higher:
      javac Savesuper.java
    
  2. Run the file you just compiled: java Savesuper

The original book object is printed (showing the object before serialization) and then the new book object is printed (showing the object after serialization).

blue bar

Additional Information

Abstract
Sources
List of Examples

<blue bar