谁可以帮我解释一下这个题目,调试时出现黄色的波浪线,编译不能通过啊
10. 1) interface Foo{
2)int k=0;
3) }
4) public class Test implements Foo{
5) public static void main(String args[]){
6)int i;
7)Test test =new Test();
8)i=test.k;
9)i=Test.k;
10)i=Foo.k;
11) }
12) }
what is the result?
Answer:compile successed and i=0