O'Reilly logo

Inside Java™ 2 Platform Security: Architecture, API Design, and Implementation, Second Edition by Mary Dageforde, Gary Ellison, Li Gong

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

9.6. Serialization

Serialization is a feature that allows an object’s nontransient state to be stored in a “serialized” form, for example, for the purpose of transporting the object to another machine and then deserializing it, or reconstructing the object, at the destination. RMI uses serialization extensively, as do other packages. Objects are serialized and deserialized via output and input stream classes ObjectOutputStream and ObjectInputStream. Default implementations of two methods, ObjectOutputStream.writeObject and ObjectInputStream.readObject, are invoked for serialization and deserialization, respectively. You also can write, for a serializable class—one that implements the java.io.Serializable interface—writeObject and readObject ...

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