Java what is wrong with this interface [closed]

In Java 8+ interfaces can provide default implementations, but they require the default keyword. Something like,

public interface SomethingIsWrong {
    default void aMethod(int aValue) {
        System.out.println("Hi Mom");
    }
}

Leave a Comment