Q.

What is garbage collection in the context of Java?

A. The operating system periodically deletes all of the java files available on the~~~system.
B. Any package imported in a program and not used is automatically deleted.
C. When all references to an object are gone, the memory used by the object is~~~automatically reclaimed.
D. The JVM checks the output of any Java program and deletes anything that~~~doesn't make sense.
Answer» C. When all references to an object are gone, the memory used by the object is~~~automatically reclaimed.
2.7k
0
Do you find this helpful?
50

View all MCQs in

Java Programming

Discussion

No comments yet