2つのインターフェースがあると仮定しましょう
interface A {
public static final int CONSTANT1 = 6;
}
interface B {
public static final int CONSTANT1 = 7;
}
class MYclass implements A, B {
public static void main(String[] args) {
System.out.println(CONSTANT1);//<- ??
}
}
出力される定数はどれですか、それともコンパイル エラーですか?