private static final long serialVersionUID=1L;
}
The above code
Excuse me private static final long serialVersionUID=1 l?
CodePudding user response:
https://blog.csdn.net/KobeSilent/article/details/44975701? Utm_medium=distribute. Pc_relevant. None - task - blog - BlogCommendFromMachineLearnPai2-1. Channel_param & amp; Depth_1 - utm_source=distribute. Pc_relevant. None - task - blog - BlogCommendFromMachineLearnPai2-1. Channel_paramHave related blog, I can't understand what meaning, I understand also outlined under bai when taking post
CodePudding user response:
Is to define a static constant value, integer,1 L, L said is long,
CodePudding user response:
Serialization?CodePudding user response:
Its name meaning is serialized version number, that is, an object can use this value to distinguish between different versions, specific can distinguish strategy, generally if you don't want to different versions, the modified after the entity fields, don't change the version number, it has been serialized objects still can be used to do before the deserialization, not incompatible, if after changing the object field, thought the old object should be abolished, you change a number, the previous data cannot deserialize anymore