Load int
from array
Bytecode
Type | Description |
u1 | iaload opcode = 0x2E (46) |
Stack ..., arrayref, index => ..., value
Description
Retrieves an entry from a int array and places it on the stack.
The arrayref must be of type reference
and must refer to an array
whose components are of type int
. The index must be of type int
.
Both arrayref and index are popped from the operand stack. The int
value in the component of the array at index is retrieved and pushed onto
the top of the operand stack.
NullPointerException - arrayref is null
ArrayIndexOutOfBoundsException - index is < 0 or >= arrayref.length