Tuesday, December 4, 2007

What is Serialization

Serialization is the process of persisting the state of an object. Lets say for example you create a dog object and instantiate all its various members, size, age, height etc. Serialization allows you to 'save' this object persisting all its state. Its kind of like saving anything, this can then be restored at a later date and the object reused.

To make a class suitable for serialization the class needs to implement the Serializable interface. Serializable is a marker interface, it doesnot have any methods defined.

No comments :

Post a Comment