checkcast


Description: checks top of the stack to see if it is type (type)

Stack

Before After
object ref object ref

Example

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

checkcast java/lang/String;      ; is top a String?

Exceptions

ClassCastException is thrown if object is not of type

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


back to opcode reference.