What is garbage collection and how it works ?



What is garbage collection and how it works ?..

Answer / Pradeep Kumar Mahto

Garbage Collection in .NET is a process that automatically reclaims memory occupied by objects that are no longer in use. The garbage collector identifies these objects by tracking the reference count of each object, and when an object has no more references pointing to it, the garbage collector frees up the memory associated with it. The exact algorithm used for garbage collection can vary between different .NET implementations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Write code for fetch record nos 15 to 25 from a dataset containing 50 records?

4 Answers   C Squared Systems,


Do I have any control over the garbage collection algorithm?

1 Answers  


Can a dll be changed to an exe?

1 Answers  


Tell us what is a sealed class?

1 Answers  


What is meant fulltrust?

1 Answers  


Do you know what is .net standard?

1 Answers  


Tell us what is heap and what is stack?

1 Answers  


How to implement DataGrid in .NET?

1 Answers   InfoPro,


Is .net capable of supporting multi-thread?

1 Answers  


Explain what is reflection in microsoft .net context?

1 Answers  


What is the difference between user control an custom control? Advantages/disadvantages?

1 Answers  


How to get the hostname or IP address of the server?

2 Answers  


Categories