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

单项选择题

11. public static void append(List list) { list.add(”0042”); } 
12. public static void main(String[] args) { 
13. List intList = new ArrayList(); 
14. append(intList); 
15. System.out.println(intList.get(0)); 
16. } 
What is the result?() 

    A. 42
    B. 0042
    C. An exception is thrown at runtime.
    D. Compilation fails because of an error in line 13.
    E. Compilation fails because of an error in line 14.

点击查看答案&解析

相关考题

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

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

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

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