The fact that class Object declares a finalize method means that the finalize method for any class can always invoke the finalize method for its superclass, which is usually good practice. (Unlike constructors, finalizers do not automatically invoke the finalizer for the superclass; such an invocation must be coded explicitly.)
"JavaRanch, where the deer and the Certified play" - David O'Meara
Originally posted by sunil kathuria:
i have found this question from mock exam
is it true or false ?
Any class that includes a finalize method is not necessary
to invoke super class�s finalize() method.
whereever i think it should be true
but the ans. is false
can anybody pl.tell me the right answer
thanks in adv.
sunil
"JavaRanch, where the deer and the Certified play" - David O'Meara
"JavaRanch, where the deer and the Certified play" - David O'Meara
Any class that includes a finalize method is not necessary
to invoke super class�s finalize() method.
whereever i think it should be true
but the ans. is false