问题:
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.
。
。
。
。
下列哪一机关可以设立临时庇护场所,为家庭暴力受害人提供临时生活帮助() 设区的市人民政府。 省级的人民政府。 乡级人民政府。 国务院。
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? ()
● 参考解析
本题暂无解析
相关内容
相关标签