欢迎来到在线考试题库网 在线考试题库官网
logo
全部科目 > Oracle认证考试 > 1Z0-853

单项选择题

Given:  
11. public static void main(String[] args) {  
12. Object obj = new int[] { 1, 2, 3 };  
13. int[] someArray = (int[])obj;  
14. for (int i : someArray) System.out.print(i + " ");  
15. }  
What is the result? ()

    A. Compilation fails because of an error in line 13.
    B. A ClassCastException is thrown at runtime.
    C. 1 2 3
    D. Compilation fails because of an error in line 14.
    E. Compilation fails because of an error in line 12.

点击查看答案

相关考题

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

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