return

Return void from method

Bytecode

Type Description
u1 return opcode = 0xB1 (177)

Stack ... => [empty]

Description

return is used to return from a method whose return type is void.

All items on the current method's operand stack are discarded. If the current method is marked as synchronized, then an implicit monitorexit instruction is executed. Then the current method's frame is discarded, the invoker's frame is reinstated, and control returns to the invoker.