popStack
Before | After |
item | ... |
... |
Pops the top single-word item off the stack and discards it.
Example
invokevirtual Myclass/test()Z ; call boolean Myclass.test(); pop ; discard the boolean result
Bytecode Type
See Also Description u1 pop opcode = 0x57 (87)
pop2
Notes
1. Use pop2 to remove long integers and doubles from the stack (using pop when the top item on the stack is a long integer or double will cause a verification error).
2. Note there is no matching "push" instruction. Use bipush, sipush, one of the