阅读下列代码 public class Person{ static int arr[ ] = new int (10);

分类: 2019江中知识赛B(看题模式) 发布时间: 2023-12-01 12:13 浏览量: 0

阅读下列代码 public class Person{ static int arr[ ] = new int (10); public static void main (String args ) { System.out.println(arr[9]); } } 该代码运行的结果是:

A.编译时将产生错误

B.编译时正确,运行时将产生错误

C.输出0

D.输出空

E.C

F.3

正确答案是C