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...

What is the Difference B/W Finalize() and Dispose() in .Net?

Answer Posted / sushma

A Dispose() method is explicit, meaning you code Dispose()
up and explicitly call it in your application or system
code. A Finalize() method is implicit, meaning you code
Finalize() up but never actually call it — Finalize() is
called behind the scenes by the .NET GC mechanism.

The GC call the Finalize() function automatically to destroy
the object called implicit destroy. when you want to destroy
a objects that you think no longer need and free it from
memory, then we will use the dispose function. For better
performance we will use the dispose function explicitly.

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In early binding will the method invoked on com component will verify it?s existance in the system or not ?

2637


How to retrieve user name in case of Window Authentication?

748


What does asp stand for in asp.net?

979


What is role-based security in asp.net?

1072


Which class is used to send an email message from an ASP.NET Web page?

1024


Where you store Connection string in "Web.Config" file in ASP.NET?

1061


What are themes and skins in 2.0, explain usage scenario?

938


What is web api config?

976


How will you load dynamic assembly? How will create assesblies at run time?

929


Explain the Order of events in an asp.net page?

1023


Explain how is the asp.net mvc architecture different from others? : asp.net mvc

1017


What is paging in context of Memory?

1112


What is the difference between CC and BCC?

1063


List some of the important session state modes of asp.net.

990


What is owin authentication?

970