Implementing the Serializable Interface

Implementing the Serializable interface amounts to simply declaring that your class can be serialized.

Add the words implements java.io.Serializable to your class definition.

For example, the Product class in the in $SADIR/samples/asa/java/asademo (UNIX) or %SADIR%\samples\asa\java\asademo (Windows) subdirectory implements the Serializable interface by virtue of the following declaration:

public class Product implements java.io.Serializable