What is the Difference B/W Finalize() and Dispose() in .Net?
Answers were Sorted based on User's Feedback
Answer / nishant
To Release the Memory Occupied by Object by implicit way
then use finalize() Method...And release the Memory by
Explicit Way then Use dispose() Method..
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
What are the new data controls in asp.net 2.0?
How To Authenticate Your Web service??
what is .net
Where do you store the information about the user?s locale?
1 Answers Siebel, Visual Soft,
Explain the concept of event bubbling in ASP.NET?
0 Answers Sans Pareil IT Services,
What New Features comes with ASP.NET Web API 2.0?
what are the main advantage in .net?
I need to download file from web server, without using save as dialogue box. Can anyone help, thanks In advance.
Why is global asax is used?
What is the difference between ExecuteReader,ExecuteNonQuery and ExecuteScalar.
What is deference between asp.net, vb.net, c# & j#
what is difference between .net 3.0 and 3.5
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)