What is Garbage Collection in .Net and what is the Garbage
collection process?

Answer Posted / dotnetkal

A Garbage collector is actual used to collect the objects and save under it . In tht objects we are going to have unused objects and using objects.the process is to do Memory management . Garbage Collector GC is divided into three generations. each generation will store objects.
GEN3>GEN2>GEN1
when ever Gen1 Is filled and no space for new object .it will clean up by itself and delete all the un used objects .. the objects tht are currently used are going To shifted into GEN2 so the process is repeated for all the Generations.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

619


Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?

619


Why do we use msmq?

689


Do I have any control over the garbage collection algorithm?

654


What do you mean by Driver Script?

707






Which namespace does it belong to by default?

660


Explain how viewstate is being formed and how it's stored on client in .net?

630


What's wrong with a line like this? Datetime.parse(mystring);

639


Tell us what is the native image generator?

643


Explain how do assemblies find each other?

667


Using com component in .net?

680


Why do we use the “using” statement?

627


What is smart navigation in .net?

665


Explain about the features and elements present in Visual studio.NET IDE?

713


Explain about .Net products?

698