day05-数组的内存原理_一个数组的内存图解

This commit is contained in:
2026-07-18 15:34:10 +08:00
parent 329b2a7397
commit 77e71b3201
2 changed files with 26 additions and 0 deletions
+1
View File
@@ -27,5 +27,6 @@ public class Demo02 {
System.out.println(arr2[1]);//2
//虽然arr2的长度为2,能否查看arr2的第三个空间的值??不能,否则java.lang.ArrayIndexOutOfBoundsException
//System.out.println(arr2[2]);
}
}