Interface Concepts:
- is a collection of abstract methods (public abstract implicitly thinks, and only), non-abstract class inheritance must implement all methods;
- Variables that can contain static and final declarations (public static final default, and only);
Tag interface uses:
To create a common parent interface:
- As with the EventListener interface, which is a Java API that is extended by dozens of other interfaces, you can use a markup interface to create a parent interface for a set of interfaces. For example: When an interface inherits the EventListener interface, the Java Virtual Machine (JVM) knows that the interface will be used for an event's proxy scenario.
To add a data type to a class:
- This situation is the initial purpose of the markup interface, the class that implements the tag interface does not need to define any interface methods (because the markup interface has no method at all), but the class becomes an interface type through polymorphism.
"JAVA" interface