Understand The SerialVersionUID
If you have ever implemented Serializable interface, you must encounter this warning message The serializable class xxx does not declare a static final serialVersionUID field of type long intro. So…what is serialVersionUID? The serialVersionUID is used as a version control in a Serializable class. If you do not explicitly declare a serialVersionUID, JVM will do it for you automatically, based on various aspects of your Serializable class, as described in the Java(TM) Object Serialization Specification . 1. SerialVersionUID Example The above statement is a bit hard to understand at the