阅读下面的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.编译报错