欢迎来到计算机考试题库网 考试题库官网
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

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.

点击查看答案

相关考题