What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-13 08:25:07
heap memory vs string pool
String uses a special memory location to reuse of String objects called String Constant Pool. String objects created without the use of new keyword are stored in the String Constant Pool part of the heap. It doesn't create the same string object if there ... Add solution -
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 -
Other 2021-09-24 14:59:02
string constant pool
String uses a special memory location to reuse of String objects called String Constant Pool. String objects created without the use of new keyword are stored in the String Constant Pool part of the heap. It doesn't create the same string object if there ... Add solution