.Net Interview Questions and Answers

Search:

C# Interview questions :- Explain generations ( GC 0 , GC 1 and GC 2) in .NET?

By : Shiv Prasad Koirala | Nov 25th, 2016 | Views : 637 | Comments : 0 Bookmark and Share

Generations defined how the old the objects are alive in memory.


So if the object is freshly created its in generation 0 ( gen 0). If after some time garbage collector (GC) is not able to reclaim it , its moved to generation 1 ( gen 1). If the object stays in memory for a more longer time then its shifted to Generation 2( gen 2).


There are only three generations. So more the object is old the more it goes to higher generation bucket.


Below is a nice youtube video which explains the .NET Garbage collector and generation concept in more detail


 
Rate this Article :
1 Star
2 Stars
3 Stars
4 Stars
5 Stars
1 1 1 2 1
 
 
Comments

Write a Comment

All fields marked with * are mandatory

f0d47

 

 
 

.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala

In this article we will explain .NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala.... Read More

What is the difference between Stored Procedures and Function (SQL Server interview question with answers)?

In this article we will explain what is the difference between Stored Procedures and Function.For more articles and videos visit us on www.questpond.com... Read More

Explain MVC application life cycle?

In this article we will explain MVC application life cycle.For more articles and videos visit us on www.questpond.com... Read More

C# Design pattern interview questions with answers: - How Singleton is different from Static class?

In this article we will explain How Singleton is different from Static class.... Read More

WCF interview questions and answers: - What is the difference between Service endpoint and Client endpoint?

In this article we will explain What is the difference between Service endpoint and Client endpoint.... Read More

.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala

In this article we will explain .NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala.... Read More

What is the difference between Stored Procedures and Function (SQL Server interview question with answers)?

In this article we will explain what is the difference between Stored Procedures and Function.For more articles and videos visit us on www.questpond.com... Read More

Explain MVC application life cycle?

In this article we will explain MVC application life cycle.For more articles and videos visit us on www.questpond.com... Read More

C# Design pattern interview questions with answers: - How Singleton is different from Static class?

In this article we will explain How Singleton is different from Static class.... Read More

WCF interview questions and answers: - What is the difference between Service endpoint and Client endpoint?

In this article we will explain What is the difference between Service endpoint and Client endpoint.... Read More

Article Categories

Learn in Hindi