nerdexam
Microsoft

98-372 · Question #199

You need to force an immediate garbage collection of all unused memory. Which method should you use?

The correct answer is B. Collect. See the full explanation below for the reasoning.

Question

You need to force an immediate garbage collection of all unused memory. Which method should you use?

Options

  • AWaitForFullGCComplete
  • BCollect
  • CSuppressFinalize
  • DCollectionCount

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    80% (24)
  • C
    10% (3)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice