iconst_m1 : push the integer constant -1 : index : visitInsn()

Description
This instruction pushes the int -1 onto the operand stack.
Notes
You could also use bipush -1, sipush -1 or ldc -1 to achieve the same effect, although iconst_m1 is typically more efficient and uses fewer bytes in the bytecode.
See also
bipush sipush ldc ldc_w ldc2_w aconst_null iconst_n lconst_l fconst_f dconst_d
Stack
Before After
... -1
...
Bytecode
Type Description
u1 iconst_m1 opcode = 0x02 (2)