Push int
constant -1
Bytecode
Type | Description |
u1 | iconst_m1 opcode = 0x02 (2) |
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.