Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the difference between “finalize” and “finally” methods in C#?
Home
C Sharp
What is the difference between “finalize” and “finally” methods in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
What is the difference between “finalize” and “finally” methods in C#?
finalize-c#
c#-finalize
c#-finally
finally-c#
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
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
Q: What is the difference between “dispose” and “finalize” variables in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
dispose-c#
c#-dispose
finalize-c#
c#-finalize
0
votes
Q: Do we get error while executing “finally” block in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
finally-c#
c#-finally
0
votes
Q: Why to use “finally” block in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
finally-c#
c#-finally
0
votes
Q: What is the difference between dispose() and finalize() methods in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#dispose
#finalize-method
0
votes
Q: What is the difference between finalize and finally methods in Csharp
asked
Jan 13, 2020
in
Big Data | Hadoop
by
AdilsonLima
Bigdata-questions-answers
Hadoop-questions-answers
+1
vote
Q: What is the difference between final, finally and finalize?
asked
May 5, 2021
in
JAVA
by
SakshiSharma
#final
finally
finalize
Java-questions-answers
+1
vote
Q: Difference between final, finalize and finally?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-final
#java-finalize
Java-questions-answers
+2
votes
Q: What is the difference between finally and finalize block
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#chash
#basicchash
0
votes
Q: What is the difference between “throw ex” and “throw” methods in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
throw-ex
throw-c#
c#-throw
throw-in-c-sharp
+1
vote
Q: What is the difference between Finalize() and Dispose() methods?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#chash
#dotnet
#basicchash
...