Where does class, object, reference variable get stored in java. IN heap or stack? Where is heap or stack located?
<p>I understand that variables of a method are stored in stack and class variables are stored in heap. Then where does the class, objects we create get stored in java</p>
