Java 8 default methods

Why OK, so interfaces can now provide a default implementation. This makes sense if you want to be able to add new methods to your interface without breaking existing implementations. Oracle uses default methods quiet extensively (see java.util.Collection). Simple example public class SimpleExample { interface Interface1 { default void test() { System.out.println(“– default test”); } default void test2() { System.out.println(“–… Continue reading Java 8 default methods