Question 18
Which of the following statements is/are correct regarding garbage collection?
The garbage collector frees unused memory in the heap.
The garbage collector frees unused memory in the stack.
The mark-and-sweep is a common garbage collection technique.
The garbage collection eliminates all memory leaks in every situation.