What role does garbage collection play?
- It enables removal of pointer values that are left behind after the program execution ends.
- It releases the programmer from tracking objects that get created dynamically on runtime.
- It facilitates the removal of distant objects from the memory so that other processes can use the memory.
BY Best Interview Question ON 13 Jan 2019