A-A+

给出下面的程序: public class ex49 { static int arr[]

2022-08-06 02:35:59 问答库 阅读 174 次

问题详情

给出下面的程序: public class ex49 { static int arr[] = new int[10]; public static void main(String args [] ) { System.out.println (art [1] ); } } ______叙述是正确的。
A.编译时将发生错误
B.输出为 null
C.输出为0
D.编译时正确但是运行时出错请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:C

考点:程序