
What the JVM reserves when you write new int[10]: an object on the heap with a fixed length, contiguous cells, default values and an index that starts at zero. Includes why length is a field and not a method, and where ArrayIndexOutOfBoundsException comes from.
jaa01
Sep 23, 2026
Aug 26, 2026
6 min