There are 3 ways to define the serialVersionUID :
1. private static final long serialVersionUID = 1L; (Default) 2. private static final long serialVersionUID = -
You can assign any long value to serialVersionUID, but you have to change it every time you modify your class.
long
serialVersionUID
The second looks like a generated serialVersionUID, based on the features of the current class version.