Which one of the following statements is true about garbage collection?

  1. It is invoked every 40 seconds until the process is destroyed.

  2. It only occurs when the Collect method is explicitly invoked in the System.GC class.

  3. It is invoked every time a constructor is called.

  4. It is invoked when generation 0 does not have room for the newly created object.

  5. It is invoked when the Dispose method is explicitly called.


Correct Option: E

Find more quizzes: