Please anyone help me understand this | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please anyone help me understand this

What is finalize keyword and why we need to use it in java

2nd Aug 2020, 9:25 AM
Indranil
Indranil - avatar
1 Answer
0
there is also deprecated java.lang.Object.finalize() method, which if is overridden can be used as a destructor or there is try-catch-finally command for error handling
2nd Aug 2020, 11:16 AM
zemiak