O'Reilly logo

Borland® JBuilder™ Developer’s Guide by Jeff Swisher, Saleem Siddiqui, Michael Landy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Object Serialization

Object serialization is the capability of an object to write out its state to a stream and read it back in again. An object that is serialized writes out all its public and private fields including all fields inherited from all superclasses.

When an object is being serialized and it finds a field that refers to an object or array, serialization will be invoked on that object or array. Serialization is recursive until all fields of an object have been serialized. If an object does not implement the serialization interface, a NotSerializableException exception is thrown.

The java.io package provides for object serialization through the ObjectOutputStream and the ObjectInputStream. These streams provide the methods writeObject ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required