InterviewSolution
Saved Bookmarks
| 1. |
What do you mean by garbage collection? |
|
Answer» Garbage collection is basically a process of MANAGING memory AUTOMATICALLY. It uses several GC algorithms among which the popular one includes Mark and Sweep. The process includes THREE phases i.e., marking, deletion, and compaction/copying. In simple words, a garbage COLLECTOR finds objects that are no longer required by the program and then DELETE or remove these unused objects to free up the memory space. |
|