Categories

Oct 18, 2019 in C Sharp (C#)
Q: What is the difference between “finalize” and “finally” methods in C#?

1 Answer

Oct 18, 2019
Finalize – This method is used for garbage collection. So before destroying an object this method is called as part of clean up activity.

Finally – This method is used for executing the code irrespective of exception occurred or not.
Click here to read more about C Sharp
Click here to read more about Insurance

Related questions

Madanswer
Jan 13 in Big Data | Hadoop
May 6 in C Sharp (C#)
Oct 18, 2019 in C Sharp (C#)
...