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.

时间:2022-10-08 09:27:17 所属题库:SCJP程序员认证考试题库

相似题目