數組元素的默認初始化值
針對於初始化方式一:比如:int[][] arr = new int[4][3];
外層元素的初始化值為:地址值
內層元素的初始化值為:與一維數組初始化情況相同
針對於初始化方式一:比如:int[][] arr = new int[4][];
外層元素的初始化值為:null
內層元素的初始化值為:不能調動,否則報錯
public static void main(String[] args) { int[][] arr= new int[4][3]; System.out.println(arr[0]); //[I@279f2327 }