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 |
Are private class-level variables inherited?
5 Answers HCL, Siebel Systems, Visual Soft,
When would you use generics in your code c#?
Is c# and .net same?
What is _layout cshtml?
What is difference between assembly and namespace?
Describe how a .net application is compiled and executed
What is meaning of type safety in c#?
If a child class instance is created, which class constructor is called first - base class or child class?
What is a hash table c#?
Why do canadians say zed?
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.
How can I process command-line arguments?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)