New Features Added in Interfaces in JDK 9
From Java 9 onwards, interfaces can contain the following also:
- Static methods
- Private methods
- Private Static methods
Interfaces in Java
An Interface in Java programming language is defined as an abstract type used to specify the behavior of a class. An interface in Java is a blueprint of a behavior. A Java interface contains static constants and abstract methods.