Answer:
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