What is the Difference B/W Finalize() and Dispose() in .Net?
Answer Posted / m.sivakumar
Dispose() is called by as an indication for an object to release any unmanaged resources it has held.
Finalize() is used for the same purpose as dispose however finalize doesn’t assure the garbage collection of an object.
Dispose() operates determinalistically due to which it is generally preferred.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What are the modes of updation in an updatepanel?
What are the different types of sessions in asp.net? Name them?
What is http response header?
Which control has default post back is enabled(true)?
What's the use of response.output.write()?
What are the advantages of Web API?
What does occur first in ASP.Net, Authentication or Authorization?
Explain the concept of event bubbling in ASP.NET?
What is the difference between runtime version and version?
What is state management in asp.net with example?
What are Master Pages in ASP.NET?
What is a gridview in asp.net?
Why should i prefer JSP over asp.net or any other web development language..??
What are the types of caching in asp.net?
Why session is more secure than cookies?