• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in C Sharp by
Q:
What is the difference between “finalize” and “finally” methods in C#?

1 Answer

0 votes
by
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.

Related questions

0 votes
asked Jan 13, 2020 in Big Data | Hadoop by AdilsonLima
+1 vote
asked Jun 25, 2019 in Dot Net by Venkatshastri
...