"The static method can only be called on an interface class."
, (§8.4.8). this , this.staticInterfaceMethod() , - , . ; , . , this.staticInterfaceMethod() , .
, , :
public interface InterfaceA {
public static void staticInterfaceMethod() {
...
}
}
public interface InterfaceB {
public static void staticInterfaceMethod() {
...
}
}
public class ClassAB implements InterfaceA, InterfaceB {
...
}
ClassAB? , , ; .
.
this , .. , , , , .