Monday, March 26, 2007 02:24 AM
Serialization is a process of persisiting the state of an Object.persisting is nothing but storing it in some format it can be in database,file or anything that can be retrievable.
In java to make a Object Serializable you can implement the interface called java.io.Serializable(Marker interface) which doesn't contain any methods.Serialization is useful when you are accessing the any object thru network(for example using RMI or EJB etc...)
.If you are using RMI the Remote object should be serializable so that the underlying RMI will take care of the serialization of your object.Suppose if you need any thing special while serializing the object you can implement two methods called writeObject & readObject. More information you can find here
Krishna Rajendra A.