What is stored in the heap, stack, and metaspace?
Strong answer
The shared heap stores ordinary objects, each thread's stack stores call frames and local execution state, and metaspace stores class metadata in common HotSpot implementations. Native memory also exists outside these areas.
