Jvm object is created in the process of:
Jvm object in memory layout:
Object reference and positioning:
Access by way of a handle:
Advantages: no change stack reference object moves, by simply changing a pointer pool handle
Cons: access requires more than access to a pool handle only access the real object.
Accessed through a pointer ways:
Benefits: direct access to the object can be high access efficiency.
Disadvantages: need to modify the reference object moves the stack of reference.