Java Identity Interface

Source: Internet
Author: User

The identity interface is an interface that does not have any methods and properties, and the identity interface does not have any semantic requirements for the implementation class.
Only indicates that its implementation class belongs to a specific type. It's very similar to the concept of tag in Web 2.0
, which Java uses to identify a class of objects. There are two main uses: first, by the interface to identify the same type of
class, this class itself may not have the same method as the advice interface, and second, by identifying the interface
Make the program or JVM take some special processing, such as Java. Serializable it tells the JVM that objects can be serialized.

Java Identity Interface

Related Article

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.