Which method is used to initiate a cleanup of a heap?
A. Collect
B. GCCollectionMode
C. KeepAlive
D. WaitForPendingFinalizers
Answer:A
Which method is used to initiate a cleanup of a heap?
A. Collect B. GCCollectionMode C. KeepAlive D. WaitForPendingFinalizers
Explanation: The Collect method is used to initiate a cleanup of a heap. This method is part of the GC (garbage