Answer:
The Garbage collection can happen in the following three situations:-
1. The free physical memory of System is low.
2. The memory allocated on managed heap is more than a
pre- defined value.This value changes as the process runs.
3. The GC.Collect() method is called
Asked In: Many Interviews |
Alert Moderator