Please anyone help me understand this | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
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