您的位置:首页 - 题库 - Java题目
阅读下列代码,正确的说法是( )。
public class Person {
static int arr[] = new int[10];
public static void main(String args[]) {
System.out.println(arr[1]);
}
}

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

上一题 下一题
收藏 列表
评论:

导航