Automatically generated serialVersionIds are hashes based on method signatures, parameters, etc., similar to a class. This was done so that serialVersionId changes whenever you change your class, indicating the serialization mechanism that the data / class is no longer compatible. This is the default value.
When you define your own, just start at 1 and increment when the class is no longer compatible with previously serialized data.
source share