Provides the ability to write the complete state of an object to an output stream and then recreate the object later by reading the serialized representation from an input stream. |
Classes ObjectOutputStream and ObjectInputStream have methods to read and write objects (as well as primitive types). |
Used for transferring objects in cut-and-paste, RMI, and JavaBeans. |
Also useful for saving customized or pre-initialized states of objects such as GUI's. |