I know that instance variable is created on stack, and the object which is pointed by this variable is created on heap. But I've confused about instance variable of an object.
To demonstrate, please see the following code:
"per" is created on stack, the object "per" point to is created on Heap
auto-created string "Andy" is created on Heap, and how about the "name"?
It is a member of object Person, on which memory it is created? Heap or Stack?