Serialization
Serialization allows storing and persisting objects as bytes.
To activate serialization a class should be marked with the Serializable interface.
Now the class can be sent through a serializable medium:
Transient Fields
Transient fields are not serialized:
Versioning
To handle several versions of the same serializable class add the serialVersionUID field:
Last updated
Was this helpful?