问题详情

答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

阅读下列代码: public class Person{ static int arr[]=new int[10]; public static void main


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

A.编译时将产生错误

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

C.输出零

D.输出空

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题