+ 4

what is the use of finalize() method.

25th Feb 2017, 1:50 PM
kumar Saurav
kumar Saurav - avatar
2 Respuestas
+ 8
finalize() forces the run of the garbage collector: it does not destroy anything, it makes free the unused memory in the stack/heap.
25th Feb 2017, 2:00 PM
Michael Isac Girardi
Michael Isac Girardi - avatar
+ 2
the finalize() method only approximates the function of a destructor.
25th Feb 2017, 1:51 PM
Anirudh Ramasami
Anirudh Ramasami - avatar