Content deleted Content added
No edit summary |
clarify difference between invokespecial and invokevirtual |
||
Line 357:
| invokeinterface || align="center" | b9 || indexbyte1, indexbyte2, count, 0 || objectref, [arg1, arg2, ...] → || invokes an interface method on object ''objectref'', where the interface method is identified by method reference ''index'' in constant pool (''indexbyte1 << 8 + indexbyte2'') and ''count'' is the number of arguments to pop from the stack frame including the object on which the method is being called and must always be greater than or equal to 1
|-
| invokespecial || align="center" | b7 || indexbyte1, indexbyte2 || objectref, [arg1, arg2, ...] → || invoke instance method on object ''objectref'' requiring special handling (instance initialization method, a private method, or a superclass method), where the method is identified by method reference ''index'' in constant pool (''indexbyte1 << 8 + indexbyte2'')
|-
| invokestatic || align="center" | b8 || indexbyte1, indexbyte2 || [arg1, arg2, ...] → || invoke a static method, where the method is identified by method reference ''index'' in constant pool (''indexbyte1 << 8 + indexbyte2'')
|