Recently i was asked this question in an interview, "When garbage collector will be executed?"
Garbage collector is used to clean the memory of unused objects. There is no certain schedule when garbage collector will be executed. When the application runs out of memory or system has more memory pressure, then only garbage collector will be executed.
Read More..   [32134 clicks]
Published under: C# Interview Questions and Answers · · · ·