Basic Java programming tutorials for learning Java fundamentals.
Reading or writing an object is called serialization. It saves an object sate which can be restored at a later stage. Implement the java.io.Serializable interface to make a class serializable. This interface is also called marker interface. It supports object persistence to a file. Serialization
If you do not want to serialize an object then mark it as transient. Serialization can affect performance in following ways: