Is serialVersionUID inherited by subclasses, if I have default serialVersionUID in superclass?
No it is not inherited, because it is private, and in any case Serialization won't consider it as belonging to the subclass and not use it.
Similar to when the superclass is serializable then subclasses are also serializable.
It isn't similar. Serializable
is an interface and it is subject only to the rules of the language. serialVersionUID
is a special field with its own rules enforced by ObjectInputStream.