Before 1.Java8, the interface can only define constants and abstract methods.
2. Java 8, the interface may be defined (default methods public abstract, variable default public static final):
- constant
- Abstract method
- The default method
- Static method
2. In the Java 9, the interface can be defined:
- constant
- Abstract method
- The default method
- Static method
- Private methods
- Private static method