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

题目详情

单选题 以下输出是什么class TestIt{ public static void main ( String[] args ) { int[] myArray = {1, 2, 3, 4, 5}; ChangeIt.doIt( myArray ); for(int j=0; j<myArray.length; j++) System.out.print( myArray[j] + " " ); }}class ChangeIt{ static void doIt( int[] z ) { z = null ; }}

A. 1 2 3 4 5

B. 什么都不会打印出来

C. 程序将因运行时错误而停止

D. 0 0 0 0 0

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

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

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

Copyright © 2022 津ICP备2021001502号