I recently read a comment saying that usage of serialVersionUID to make different versions of the same class compatible for serialization/deserialization is no longer needed from Java 5 onwards. Is this correct? Maybe it got mixed-up with covariant return types. So wanted to check it out with you all.
I recently read a comment saying that usage of serialVersionUID to make different versions
Share
The JavaDocs for Java 5 still states that it is needed: