What is the difference between Finalize() and Dispose() methods in dotNet? DotNet Question 6 of 100

Опубликовано: 19 Февраль 2026
на канале: Tech Interview Questions
216
4

DotNet Interview Question 6 of 100:
What is the difference between Finalize() and Dispose() methods in dotNet?

Answer:
Finalize() is called by the Garbage Collector implicitly to free unmanaged resources before an object is garbage collected. Dispose() is called explicitly by the programmer to free unmanaged resources.