试题详情
单项选择题 interface foo {   int k = 0;   }    public class test implements Foo (   public static void main(String args) (    int i;   Test test = new test ();   i= test.k;   i= Test.k;   i= Foo.k;   )   )   What is the result? ()

A、 Compilation succeeds.

B、 An error at line 2 causes compilation to fail.

C、 An error at line 9 causes compilation to fail.

D、 An error at line 10 causes compilation to fail.

E、 An error at line 11 causes compilation to fail.

  • A
  • 关注下方微信公众号,在线模考后查看

热门试题