Heap
- It's a
dynamic allocationof memory -
Heap is reserved to variables and data created upon executing the program (
runtime) -
C heap functions
malloc()calloc()realloc()free()- Java
- Instantiated objects live in heap memory

dynamic allocation of memoryHeap is reserved to variables and data created upon executing the program (runtime)
C heap functions
malloc()calloc()realloc()free()