when will garbage collector run?

Answer Posted / vamsi manikonda

when the object was not used it was thrown to the garbage
collector.this has to be done by CLR which behaves like a
runtime for .net like java virtual machine for java.

we can force the garbage collector to run also.

syntax:system.gc.collect();

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

568


What is route in web api?

525


What does asp.net stand for?

534


What is difference between singleton and single call?

641


Define the term Scavenging in Caching?

576






Explain the steps needed to be performed in order to create an animation in xaml?

550


What is the adavantage of using ASP.NET routing?

643


Where is the view state data stored in asp net?

557


How to implement Authentication and Authorization?

560


What is the difference between web config and machine config files?

549


How would ASP and ASP.NET applications run at the same time on the same server?

1942


Define xmlvalidatingreader class.

561


Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?

1715


What are sharepoint pages?

493


Explain how do you deploy your asp.net application?

479