Java Markup Interface

Source: Internet
Author: User

in Java, the interface that does not define any method and constant is called the tag interface , and often one of the most typical markup interfaces is "Serializable", and this interface does not define any methods or constants, What is the use of the markup interface in Java? The main function is to give an object a flag, tell the JVM, what this object can do, such as the implementation of the "Serializable" Interface class object can be serialized, there is a "cloneable" interface, this is a token interface, By default, objects in Java are not allowed to be cloned, like real-life people do not allow cloning, but as long as the implementation of the "Cloneable" interface, then the object can be cloned.

Java Markup Interface

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.