Private static final long Serialversionuid

Source: Internet
Author: User
Serialversionuid is used to indicate compatibility between different versions of a class. If you modify this class, you want to modify this value. Otherwise, an error occurs when a class that was previously serialized with the old version of the class is restored. In order to ensure compatibility of the class version when deserializing, it is a good idea to add the private static final long Serialversionuid attribute to each class you want to serialize, specifying the value yourself.
You can add it automatically by clicking the left button on the warning. Of course, you can also remove the warning. Settings: Window-->preferences-->java To change the setting of the serializable class without serialversionuid from warning to ignore. Eclipse then compiles the program and the warning messages disappear.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.