给出下面的程序: public class ex49 { static int arr[] = new int[10]; public static void main(Stri

admin2008-01-11  34

问题 给出下面的程序:       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

解析
转载请注明原文地址:https://kaotiyun.com/show/YInp777K
0

相关试题推荐
最新回复(0)