1.What is serialization ?
Ans: Serialization is the process of writing complete state of java object into output stream, that stream can be file or byte array or stream associated with TCP/IP socket.
2.What does the Serializable interface do ?
Ans: Serializable is a tagging interface; it prescribes no methods. It serves to assign the Serializable data type to the tagged class and to identify the class as one which the developer has designed for persistence. ObjectOutputStream serializes only those objects which implement this interface.
3.How do I serialize an object to a file ?
Ans: To serialize an object into a stream perform the following actions:
1. Open one of the output streams, for example FileOutputStream.
...