Given:   11. public static void main(String[] args...
单选题

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? ()

发布日期:2020-04-10

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.

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定