GIAC
GSSP-JAVA · Question #266
GSSP-JAVA Question #266: Real Exam Question with Answer & Explanation
The correct answer is D. System.gc();. See the full explanation below for the reasoning.
Question
Which of the following statements can be used by a Programmer to suggest the JVM to perform garbage collection?
Options
- ARuntime.getRuntime().freeMemory();
- BRuntime.getRuntime().totalMemory();
- Cnew Thread().destroy();
- DSystem.gc();
- ESystem.runFinalization();
- FSystem.setOut();
Community Discussion
No community discussion yet for this question.