首页 试题广场 > 试题详情
单选题

阅读下面的Java代码,则程序输出结果正确的是()。(选择一项)
public class Test {
public static void main(String[] args) {
int[] a = new int[3];
int[] b = new int[]{1,2,3,4,5};
a = b;
for(int i = 0; i < b.length; i++){
System.out.print(a[i] + " ");
}
}
}

  • A.0  0  0
  • B.0  0  0  0  0
  • C.1  2  3  4  5
  • D.编译报错
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 17个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部