javaserializable

What does Serializable mean?


What exactly does it mean for a class to be Serializable in Java? Or in general, for that matter...


Solution

  • Serialization is persisting an object from memory to a sequence of bits, for instance for saving onto the disk. Deserialization is the opposite - reading data from the disk to hydrate/create an object.

    In the context of your question, it is an interface that if implemented in a class, this class can automatically be serialized and deserialized by different serializers.