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

What's the problem with .net generics?

556


What are .net functions?

525


What are the important components of .net?

558


If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

1587


Explain webfarm vs webgardens in .net?

583






What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?

617


What is Complex Class in .NET?

601


Explain what is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

536


Tell us what is heap and what is stack?

559


How is .net able to support multiple languages?

608


Explain the difference between asp.net and asp?

561


What is operator overloading in .net?

622


Will my .net app run on 64-bit windows?

597


Explain about .Net products?

609


What is misl?

623