Give the correct answer of my question "What is the purpose of a garbage collector in programming languages like Java or Python?".
Select from the options below:
A) To optimize the execution speed of the program by caching frequently used data
B) To automatically manage memory by reclaiming unused memory space and preventing memory leaks
C) To ensure that all variables are initialized before use
D) To perform type checking and ensure data is consistent throughout the program
Add a comment
Zoya Shaikh – Thank you very much – May 12, 2025 - 11:45
Add a comment
Zoya Shaikh – Thank you for giving me right answer – Apr 27, 2025 - 20:17
Add a comment