public interface test {
public static int a=1;
}
class Test implements test{
public static void main(String[] args) {
Test t = new Test();
System.out.println(t.a);
}
}
public static int a=1;
}
class Test implements test{
public static void main(String[] args) {
Test t = new Test();
System.out.println(t.a);
}
}
请问是什么原因???
System.out.println(Test.a);
而你上面出现的也只是一个警告而不是错误,所以你也可以忽略不计。