It does not extend the class - it implements the Serializable interface, which is basically a marker interface to say "I", m fine for serialization. "
The idea is to be able to transparently serialize class instances - perhaps for caching or other purposes, I'm not sure about this. The serialVersionUID field is part of the version that Java binary serialization uses.
source share