instanceof


Description: tests if object reference is an instance of the given class
Pushes 1 if it is an instance, 0 else. Always pushes 0 if the reference is null.

Stack

Before After
object ref ( or array ref ) result

Example

Jasm-------------------

instanceof [F      ; is it an array of floats
instanceof java/lang/String      ;is it a java String


Back to
Opcodes indexed by function.
Opcodes indexed by number.


back to opcode reference.