An array of integers is represented as a memory block for storing integers and the title of an object. An object header usually takes 3 32-bit words for a 32-bit JVM, but this is platform dependent. (The header contains some flag bits, a reference to the class descriptor, space for information about elementary locking, and the length of the actual array. Plus an addition.)
, 10 int, , 13 * 4 .
Integer[] Integer 2 1 , . 1 ( 1 2 64- JVM) . 5 20 ... Integer .
:
- , 64- JVM, , " oops".
- JVM 16 ... (, ).
- - , 4 -.
- , .