Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


About Garbage Collector?

Answers were Sorted based on User's Feedback



About Garbage Collector?..

Answer / sayeed

Garbage collection is an in deterministic process Associated
with CLR. It is used to release the managed free Objects
that are no more refrenced.
But there might be scenarios in which we need to release
certain resources held by an object (like a database
connection) once the object is no longer in use.

We have destructors in C#.C# destructors are nothing but
finalize methods in disguise, with a call to base class's
finalize method.

As we know, finalize method is called during garbage
collection by garbage collector. Hence, we cannot rely only
on C# destructors to explicitly release resources as
finalize methods on objects may never be called altogether
(if the program terminates abnormally) or might be called
only when the program terminates (in a normal way).

Hence it is always a good practice to implement IDisposable
interface in such cases and to write code to release
resources explicitly in the Dispose() method.In that case we
have to use GC.SuppressFinalize() method.

Is This Answer Correct ?    2 Yes 0 No

About Garbage Collector?..

Answer / seshu

garbage collection is a form of automatic memory management.
The garbage collector attempts to reclaim garbage or memory
used by objects that will never be accessed or mutated again
by the application.

Is This Answer Correct ?    0 Yes 0 No

About Garbage Collector?..

Answer / sivaprasad

i)GarbageCollector will take care about Automatic Memory
Management it will mark the objects which has Referrence
Count is Zero.
ii)One Background Thread running in the Application with
Normal Priority And Marking The Objects Which has Referrence
Count is Zero.when there is no Applications Threads Are
Running it will Take High Priority.
iii)And this Garbage Collector Will Take Care About
"Circularreferrences"(means One Pair Of Objects Referring To
Each Other)

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

What event handlers can I include in Global.asax ?

1 Answers  


Difference between DataView and DataTable

4 Answers  


How would you turn off cookies on one page of your website?

0 Answers  


Explain the concept of MVC Scaffolding?

0 Answers   B-Ways TecnoSoft,


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

0 Answers  


How to Deploy a project?

2 Answers  


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

0 Answers   CTPL,


What is the difference between server-side scripting and client-side scripting?

0 Answers  


What is data cache in sql server?

0 Answers  


Explain how cookies work. Give an example of cookie abuse.

0 Answers  


What are the asp.net server side objects?

0 Answers  


What are the differences between Trace and Debug?

2 Answers   Accenture,


Categories