What is the difference between Finalize and Dispose method in Dot Net?

 Posted by vishalneeraj-24503 on 11/28/2013 | Category: Interview Questions Interview questions | Views: 1300 | Points: 40

1). Finalize is a Non-Deterministic whereas Dispose is a Deterministic.

2). Finalize is called implicitly where Dispose is called explicitly.

3). Finalize method is called by Garbage Collector whereas Dispose is called by Programmer.

4). We do not have to create Interface or anything for Finalize whereas in case of Dispose,we have to implement IDispose Interface.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response