What are the generation of Garbage Collection in C# .NET ?



What are the generation of Garbage Collection in C# .NET ?..

Answer / Brijesh Singh

In C# .NET, there are two generations of garbage collection: Generation 0 and Generation 1. Objects that have just been allocated are placed in Generation 0. When an object survives a garbage collection cycle, it is promoted to the next generation. If it survives another cycle in the older generation, it becomes a candidate for major garbage collection.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Are private class-level variables inherited?

5 Answers   HCL, Siebel Systems, Visual Soft,


When would you use generics in your code c#?

1 Answers  


Is c# and .net same?

1 Answers  


What is _layout cshtml?

1 Answers  


What is difference between assembly and namespace?

1 Answers  


Describe how a .net application is compiled and executed

1 Answers  


What is meaning of type safety in c#?

1 Answers  


If a child class instance is created, which class constructor is called first - base class or child class?

1 Answers  


What is a hash table c#?

1 Answers  


Why do canadians say zed?

1 Answers  


Method1() { int a=0, b=0, c=0; Monitor.Enter(this) c = 12; b = 3; a = c/b Moniter.Exit(this) } Method1() { int a=0, b=0, c=0; c = 12; b = 3; lock(this){ a = c/b } } Choose correct answer. a. Upon completion, Method1 and Method2 release the lock b. Upon Comletion, Method1 release the lcok and Method2 not. c. Upon Completion, Method2 release the lock and Method1 not. d. Upon Completion, neither Method1 or Method to release the lock.

1 Answers  


How can I process command-line arguments?

1 Answers  


Categories