Serialized when written to the file.
Serializable Serializable is a standard Java tagging interface. This interface has no operation but
it can be used to define the corresponding type as serializable. An object is
serializable when it can be converted into an array of bytes and vice versa. If an
object is
Serializable it can also be written into a file or read from a file.
Serialization is not very easy though. When you restore an object you still need a
compatible version of the class used during serialization. Implementing the
Serializable interface isn't enough - some properties are implicitly not serializable.
Some examples are