How to use Serialization?
2. Implement java.io.Serialization interface.
3. Use writeObject and readObject methods whose header are as given below:
void writeObject (Object obj) throws IOException;
Object readObject() thorws ClassNotFoundException, IOException;