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 is the difference between client-side and server-side validations in ASP.NET?
0 Answers Sans Pareil IT Services,
What is application and session in asp.net?
What is serialization?
What is Generic? explain clearly?
Explain global assembly cache.
Where on the Internet would you look for Web services?
5 Answers IBM, MNC, Siebel Systems,
Explain client-side scripting?
What is the Global.asax used for?
Types of optimization and name a few ?
Explain server control extensibility with reference to asp.net 2.0 ?
With example & diagram explain AutoPostBack.
Can we use multiple forms in single asp.net application?
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)