caload


Description: retrieve a char from array[index]

Stack

Before After
index value
array       

Example

Java---------------------

char a = array[0]

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

aload_1      ; push array from local 1
iconst_0      ;push index 0
caload      ;get what is in array[0]

Exceptions

NullPointerException if array ref is null ArrayIndexOutOfBoundsException

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


back to opcode reference.