invoke : Java Glossary
©1996-2017 Roedy Green of Canadian Mind Products
To call a method. The JVM (Java Virtual Machine) has four different types of
byte-code instructions for invoking a method. Ordered from slowest to fastest they
Instead of using invokestatic or invokespecial, the compiler might expand the method inline for
Used to call a method via an interface reference. Method
is not at the same slot in each class.
Used to call an ordinary instance method. The method is
potentially overrideable, so the JVM
has to decide at run time which variant to use.
Used to call a specific instance method, when the
particular method is known at compile time, e.g. when the method is final,
Used to call static methods. There is no object or
this parameter to deal with.