How Garbage Collection works in C# ( identify the correct step by step procedure ) ?
1.GC is usually activated by CLR when it identifies scarcity of memory for executing remaining program .
2.When GC is activated it consults register CPU's , stack memory variables and also checks for objects address present in f-reachable queue.
3.Removes all objects which are not having references .
1.GC must be activated programmatically .
2.When GC is activated it directly checks managed and unmanaged heap , identifies un used objects.
3.Removes all un used objects .
1.GC can be activated by CLR or programmatically.
2.When GC is activated it checks only managed heap memory and deletes all objects which are not having corresponding local variables in stack memory .
None of the above.
Back To Top