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

题目详情

单选题 读以下程,并回答程序的输出是什么? 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. 0 0 0 0 0

B. 1 2 3 4 5

C. 什么都不会打印出来

D. 程序因运行出错而停止

学科:Java编程及应用

时间:2023-11-08 15:11:49

Copyright © 2022 津ICP备2021001502号