It enables
Java's magic serialization mechanism. Java has a default way of serializing objects without you having to override any methods. If you want to write custom serialization code, you can implement
Externalizable.
Even better is to pretend these classes don't exist, and use something like JAXB instead, unless you have a lot of binary data to serialize.