arraylength : get length of array : index : visitInsn()

Description
Removes arrayref (a reference to an array) from the stack and replaces it with the length of the array (an int). For multi-dimensional arrays, the length of the first dimension is returned.
Exceptions
NullPointerException - arrayref is null.
Stack
Before After
arrayref length
... ...
Bytecode
Type Description
u1 arraylength opcode = 0xBE(190)