public class Main { public static void main(String[] args) { HelloInterface hello = new My(); hello.hello(); } } @FunctionalInterface interface SimpleFuncInterface { public void doWork(); } interface HelloInterface { public default void hello() { System.out.println("default hello"); } } class My implements HelloInterface { @Override public void hello() { System.out.println("hello melin"); } }