• 2022-06-09 问题

    给出下面代码:publicclassPerson{staticintarr[]=newint[10];publicstaticvoidmain(Stringa[]){System.out.println(arr[1]);}}那个语句是正确的?() A: 编译时将产生错误; B: 编译时正确,运行时将产生错误; C: 输出零; D: 输出空。

    给出下面代码:publicclassPerson{staticintarr[]=newint[10];publicstaticvoidmain(Stringa[]){System.out.println(arr[1]);}}那个语句是正确的?() A: 编译时将产生错误; B: 编译时正确,运行时将产生错误; C: 输出零; D: 输出空。

  • 1