Friday, 8 April 2016

What will happen if serializable class doesn't declare a serialVersionUID explicitly ?


If a serializable class does not explicitly declare a serialVersionUID, then the serialization runtime will calculate a default serialVersionUID value for that class based on various aspects of the class, as described in the Java Object Serialization Specification.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.