Java 9 : Private Interface Methods - TopJavaTutorial
What are Private Methods in an Interface ? Java 8 introduced the concept of default methods in Interface. It basically lets us provide a default implementation for a method in an interface. For example : public interface MyInterface { // default method default void hello(String name) { System.out.println("Hello " + name); } } So, unless […]