Invoking Instance Methods
When the JVM invokes an instance method it has to perform dynamic/late binding.
Therefore, the JVM has to find the implementation of the method having only a reference to the object and the method signature.
Class
data
*
*
*
obj
Method
Area
Heap
Class
data
*
obj
Heap
data1
data2
dataN
data2
dataN
data1
*
Class
data
*
Method Area
Heap
data2
dataN
data1
*
* Class
*M1
*M2
M1
M2
obj
Method
Area
Previous slide
Next slide
Back to first slide
View graphic version