CodePudding user response:
Two generation strategy, is a fixed 1 l, one is randomly generated a long not to repeat the data (which is actually using JDK tools to generate)CodePudding user response:
SerialVersionUID name cannot be modified into other, is the core in the package specification may dictate the name inside,CodePudding user response:
Can, because can not define this variable, the system will automatically generated according to compile a class a comparison with serislVersionUIDIf don't want to compile to differentiate version, will himself according to define the variable
This variable is used to determine the deserialization, target and serialization version version of the class, if the same can be deserialized, otherwise, the exception