invokestatic


Description: calls a static method
n is the number of arguments to the method
the long method name is really a path name, the name of the class,
the parenthesized argument list of the method called, and the return type.
Primitive types are represented by their capitalized first letter, ie I for an integer.
Constructors are path followed by <init>()V

Stack

Before After
arg n returned value
...       
arg 1       

Example

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

invoke java/lang/System/gc()V      ;call the garbage collector

Exceptions

NullPointerException if object ref is null
StackOverflowError if you run ou t of room on stack

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


back to opcode reference.