题海让大学四年没有难题
白天模式登陆

题目详情

单选题 下面代码的运行结果是( ).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. 输出 空

面向对象程序设计(2022级)课程封面

学科:面向对象程序设计(2022级)

时间:2023-06-07 11:04:06

Copyright © 2022 津ICP备2021001502号