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

How does session id work?

847


What are strong names?

981


State differences between MVC and WebAPI

1074


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

984


What is session in http request?

965


Why is the standalone environment only useful during the development process?

1770


Can you explain the importance of finalize method in .net?

984


What is query string in asp.net?

1020


Define static member?

938


What is a form tag?

841


How many types of validators are there in asp net?

907


Which type of state management is provided by Query String in ASP.NET?

969


If we remove web.config or machine.config from the application then, is this application will works?

967


In order to get assembly info which namespace we should import?

942


How can you use a custom controls in ASP.NET application?

965