How does Garbage collector(GC) works in .net

Answer Posted / bala

Garbage collection is a system whereby a run-time component
takes responsibility for managing the lifetime of objects
and the heap memory that they occupy. This concept is not
new to .NET - Java and many other languages/runtimes have
used garbage collection for some time.
A little. For example, the System.GC class exposes a
Collect method - this forces the garbage collector to
collect all unreferenced objects immediately.

Is This Answer Correct ?    12 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How ASP.NET page works?

678


What is __ requestverificationtoken?

553


What is the difference between equals() and == in c#?

572


Do gac'ed assemblies have fulltrust?

645


Who is using asp.net?

507






What is meant by asp.net?

542


What are server side controls?

533


What is the difference between page-level caching and fragment caching?

537


Why would anyone need to implement their own hashtable or linked list?

2439


What is the difference between a cookie and a pixel?

484


We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?

441


What is data reader in asp.net?

500


Why Unload event of MasterPage Calls first in ASP.net ?

588


What is smpte vc-1?

555


Explain the advantages of caching?

534