Skip to content

The 5 JVM invoke bytecodes

July 9, 2013

In no particular order:

1) invokestatic – use whenever you call a static method

2) invokeinterface – when you call a method on an object using an interface type rather than the class type

3) invokespecial – used in 3 different situations: object initialization, private methods, and superclass methods.

4) invokevirtual – simply, is any other method call in Java that isn’t one of the 3 above.

5) invokedynamic – shouldn’t really be used by Java developers, instead used by language designers on the JVM.


From → Java

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: