Java 8 new features| Static methods and Default methods in java | JavaBeam | Core Java Interview Questions & Answers
All the methods of interfaces are public & abstract by default. Java 8 allows the interfaces to have default and static methods. The reason we have default methods in interfaces is to allow the developers to add new methods to the interfaces without affecting the classes that implements these interfaces.
What's New in JDK 8:
https://www.oracle.com/java/technolog...
#JavaBeam #Java8Features #FunctionalInterfaces #Java