欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

1. interface foo { 
2. int k = 0; 
3. }
4.   
5. public class test implements Foo ( 
6. public static void main(String args[]) ( 
7. int i; 
8. Test test = new test (); 
9. i= test.k; 
10.i= Test.k; 
11.i= Foo.k; 
12.) 
13.) 
14.       
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.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题