

McqMate
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. |
View all MCQs in
Java ProgrammingNo comments yet