Serialization and Custom Data Format

Running the Example

Complete the following procedure to compile and run the example:

  1. From yourbasedir/objectserializationexamples/CustomDataFormat, compile the file CustomDataExample.java using JDK1.1 or higher:

    javac CustomDataExample.java

  2. Run the file you just compiled:

    java CustomDataExample

Two arrays are printed: the first shows the array before serialization; the second shows the array after deserialization.



For more information: