Stack/Heap in JVM
<p>I come from C/C++ background, where a process memory is divided into:</p>

<ul>
<li>Per thread stack</li>
<li>Heap</li>
<li>Instructions</li>
<li>Data</li>
</ul>

<p>I am trying to understand how JVM works, I looked at different resources, I gathered that the JVM memory is divided into heap and stack as well plus few other things.</p>

<p>I want to wrap my mind around this, when I read heap and stack in JVM are we talking about concepts of stack and heap? and that the actual memory of the entire JVM resides on the heap (and here I mean the C++ concept of a Heap)?</p>