By Ramakrishna on Jul 21, 2010 in Java Serialization | 0 Comments
So far, we’ve focused on the mechanics of serializing an object. We’ve assumed we have a serializable object and discussed, from the point of view of client code, how to serialize it. The next step is discussing how to make a class serializable. There are four basic things you must do when you are making [...]
By Ramakrishna on Jul 21, 2010 in Java Serialization | 0 Comments
Serialization is a mechanism built into the core Java libraries for writing a graph of objects into a stream of data. This stream of data can then be programmatically manipulated, and a deep copy of the objects can be made by reversing the process. This reversal is often called deserialization. Note: When serializing an object [...]
By Ramakrishna on Jul 21, 2010 in Java Important Notes, Java Serialization | 0 Comments
Serialization is the process of converting a set of object instances that contain references to each other into a linear stream of bytes, which can then be sent through a socket, stored to a file, or simply manipulated as a stream of data. Serialization is the mechanism used by RMI to pass objects between JVMs, [...]