A new feature coming in JDK 8 allows you to add to an existing interface while preserving binary compatibility.
The syntax is like
public interface S
In short: it's a compile time error, must override the method by hand in the implementation.
The major purpose to introduce default method in Java 8, is to make interface extendable, without breaking existing implementations (there are so many 3rd party Java libraries).
And multiple inheritance like in C++ is actually intended to be avoided, that's definitely not the purpose of default method in Java.
2 options:
super, format: .super.(); Tips:
public keyword when override it.