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

Answers were Sorted based on User's Feedback



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

Answer / gh

Garbage Collector is a process of releasing the memory used
by the objects, which are no longer referenced.
Programmatically Invoking the Garbage Collector by using
GC.Collect () method which is from System.GC class.

Is This Answer Correct ?    6 Yes 2 No

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

Answer / 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

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

Answer / sadhvi

Garbage Collector:-
In dot net garbage collector are written as GC.Collect ().
Garbage collector remove the unreferenced object which are
also known as Orphans object and these object occupied some
memory which is reused, for this concept of memory
reusability Garbage collector are used.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / guest

The process of transitively tracing through all pointers to
actively used objects in order to locate all objects that
can be referenced, and then arranging to reuse any heap
memory that was not found during this trace. The common
language runtime garbage collector also compacts the memory
that is in use to reduce the working space needed for the heap.

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More Dot Net General Interview Questions

How is threading done in .net?

0 Answers  


Is .net core managed code?

0 Answers  


If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?

0 Answers  


which method do you use to redirect the user to another page without performing a round trip to the client? How?

0 Answers  


Tell us what do the following acronyms in .net stand for: il, cil, msil, cli and jit?

0 Answers  


What are the fundamental objects in ADO.NET?

1 Answers  


what is the meaning silverligt control

0 Answers  


i m fresher,hav SQL knowledge but in my ofc. i hav to work on dotnet. so plz tell me how to learn it,? from where to stat? i hav C prog. knowledge, ASP.net

0 Answers  


Explain how do assemblies find each other?

0 Answers  


Explain how to spawn a thread?

0 Answers  


How com+ related to the dna architecture?

0 Answers  


what is prototype design pattern in .net

0 Answers   Infosys,


Categories