E.2. Serialization strategies

Fortunately, the JVM has built-in support for serialization that is adequate for most applications, and there is a standard way to extend it for those cases where is not.

The Java API provides a point of access to the JVM’s serialization system; the developer can either use this system in its entirety, or provide mechanisms for some or all objects to serialize themselves.

E.2.1. The standard serialization scheme

The default serialization scheme is appropriate for most applications. In this scheme, every class that is to be serialized is defined to implement the interface java.io. Serializable. The interface specifies no methods; it is simply used by the Java runtime engine to determine whether a class has been ...

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.