Interview questions

NET garbage collection

Next question>>
NET garbage collection - April 1, 2009 at 17:30 PM by Rajmeet Ghai

What is garbage collection? How to force garbage collector to run?

Garbage collection helps in releasing memory occupied by objects. CLR automatically releases these unused objects if they are not used or referenced. This helps in allocating memory for newly created objects. One drawback of garbage collector is that it does not guarantee that a program will not run out of memory. It is possible for the resources to be used faster than they are garbage collected. Garbage collection cannot be predicted if it will happen or not.

GC.Collect() can be used to force garbage collection. In most scenarios, the garbage collection must be left to run at its own accord.

Next question>>

Also read      

Difference between System exceptions and Application exceptions.

Application exceptions can be user defined exceptions thrown by the application.............

What is Native Image Generator (Ngen.exe)?

Ngen.exe helps in improving performance of managed applications by creating native images and storing them on the cache.............

Explain different properties of Object Oriented Systems.

An object oriented system revolves around a Class and objects. A class is used to describe characteristics of any entity of the real world..............

Similarities and difference between Class and structure in .NET

Both Class and Structures can have methods, variables and objects..............

What are the concepts of DISPOSE method?

Dispose method belongs to IDisposable interface. It is used to free unmanaged resources like files, network connection etc..............

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring