Class can be serialized by using the interface or the io.externalizable or io.serializable. When one class is inheritance to the other, the class is said to be serializable.
Any serializable class should pass the following three tests: If it implements readObject( ) , it should implement writeObject( ) , and vice-versa. It is equal (using the equals( ) method) to a serialized copy of itself.