1. The basic definition of the interface:
public interface interface name {
// interface content
}
call format:
public class implements the interface implementation class name name {
// ...
}
abstract methods defined in an interface 2. The
plus " abstract " Keywords
example:
public abstract interface Interface Name {
// interface content
} default interface 3. The method defined
Plus the " default " keyword
static methods defined interface 4.
add " static" keyword
5. The method defined private interface
Plus " Private " keyword
constants defined 6. Interface
Add keywords: public static final constant name in uppercase