What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-01 15:41:16
difference between heap vs stack memory
Whenever an object is created, it’s always stored in the Heap space, and stack memory contains the reference to it. Stack memory only contains local primitive variables and reference variables to objects in heap space. Objects stored in the heap are... Add solution