Search code examples
javaconstructorjvm

Why is `invokespecial` used to invoke `<init>` method in java?


Why is invokespecial used to invoke <init> method in java?

I read at multiple places but could not understand the perfect reason?

Any help would be appreciated.


Solution

  • These link are useful with very simple language

    http://arhipov.blogspot.in/2011/01/java-bytecode-fundamentals.html

    http://commons.apache.org/bcel/manual.html

    This article from ibm is also nice with good example

    http://www.ibm.com/developerworks/ibm/library/it-haggar_bytecode/