给定程序的输出是什么?( )
public class Test96 {
public static void main(String[] args) {
int[] a = new int[2];
System.out.println(a.length);
}
}0
1
2
数组的length就是数组的长度
给定程序的输出是什么?( )
public class Test96 {
public static void main(String[] args) {
int[] a = new int[2];
System.out.println(a.length);
}
}0
1
2