What part of memory – Stack or Heap – is cleaned in the garbage collection process?
Vishalini.R Answered question September 7, 2023
On the heap memory, garbage collection is employed to release the memory used by objects with no references. Every object created in the heap space has access to the entire application and may be referred to from anywhere.
Vishalini.R Answered question September 7, 2023