anewarray


Description: allocate a new array of objects

Stack

Before After
size  array ref

Example

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

String x = new String [3]

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

bipush 3      ; set size
anewarray java/lang/String      ; make a new String array
astore_1      ; and stick it in variable 1


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


back to opcode reference.