Object creation on Heap

If we talk about only your code, then there is only one Manager object, and there will be constructor-chaining till Object class. Apart from this object there will be other objects also which are needed by JVM to run your program, these will be class objects, method objects which are currently loaded in to run your program.

For more details about the execution order of any program, to get more understanding, please read once below link,

https://docs.oracle.com/javase/specs/jls/se7/html/jls-12.html#jls-12.1.1

Leave a Comment