Type an interface default method
Type an interface default method
Answer
default void logInfo(String msg) { log("[INFO] " + msg); }
default methods have a full body. Implementing classes inherit this method and may override it with @Override. This was the key Java 8 addition that enabled backward-compatible API evolution.