nerdexam
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)
  • B
    77% (10)
  • C
    15% (2)
  • D
    8% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice