New course! Every coder should learn Generative AI!
Try a free lesson+ 8
Finalize() is the method of Object class. This method is called just before an object is garbage collected. finalize() method overrides to dispose system resources, perform clean-up activities and minimize memory leaks.it throws Throwable exception.
Syntax :-protected void finalize() throws Throwable
+ 5
No, it isn't deconstructor zemiak, but DESTRUCTOR.
+ 4
And Abhishek Jain are right about explanation 👌🏻👍🏻
+ 3
It is a destructor (the opposite of a constructor), but it is deprecated
(thanks Aleksandar Nedeljkovic)