Garbage collection is used to
Garbage collection is used to
- allocate space
- keep track of space
- compress files on disk
- reuse unwanted memory(correct answer)
Answer and explanation
Correct answer: D - reuse unwanted memory
Garbage collection reclaims memory no longer referenced so it can be reused. It does not allocate space, does not merely keep track of space, and does not compress files on disk; it finds unreachable objects and returns their memory to the free pool.
Practice for these exams
-
CUSAT CAT M.Sc. Forensic Science
-
Uttarakhand Judicial Services