GIAC
GSSP-JAVA · Question #56
Which of the following is the correct syntax for the JVM garbage collection?
The correct answer is B. System.gc(). See the full explanation below for the reasoning.
Question
Which of the following is the correct syntax for the JVM garbage collection?
Options
- ASystem.out.gc();
- BSystem.gc();
- CSystem.free();
- DSystem.setGarbageCollection();
How the community answered
(13 responses)- B77% (10)
- C15% (2)
- D8% (1)
Community Discussion
No community discussion yet for this question.