阅读下列代码后 public class Person{ int art[]=new int[10]; public static void main(String args[]){ System.out.

admin2013-03-01  26

问题 阅读下列代码后     public class Person{       int art[]=new int[10];       public static void main(String args[]){          System.out.println(arr[1]);      }   }     正确的说法是(    )。

选项 A、编译时将产生错误
B、编译时正确,运行时将产生错误     
C、输出零
D、输出空

答案1

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

随机试题
最新回复(0)