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

What is .net remoting?

1053


Who is using asp.net?

945


Can we use MSSql as backend in asp.net...if yes then How.?

1043


Is session stored in browser?

970


What is cross page posting in asp net?

975


What is ipostback?

1079


What are the benefits of Razor View?

948


How can we register exception filter globally?

988


Explain the difference between web user control and web custom control?

999


What are the different types of sessions in asp.net? Name them?

1185


Can I read the hard disk serial # of the client computer using asp.net?

1096


Is asp.net outdated?

973


What is custom attribute? How to create?

1083


What are assemblies and namespaces and explain the difference between them ?

1087


If you are using two select queries and retrieving data. how do you access second query's result set using data reader?

5588