Question: Which of the following statements is true? Select the one correct answer. (a) The compiler will fail to compile code that explicitly tries to call
Which of the following statements is true?
Select the one correct answer.
(a) The compiler will fail to compile code that explicitly tries to call the finalize() method.
(b) The finalize() method can be overridden, but it must be declared with protected accessibility.
(c) An overriding finalize() method in any class can always throw checked exceptions.
(d) The finalize() method can be overloaded.
(e) The body of the finalize() method can access only other objects that are eligible for garbage collection.
Step by Step Solution
3.41 Rating (170 Votes )
There are 3 Steps involved in it
d The finalize method is like any other method It can be called explicitly if it is a... View full answer
Get step-by-step solutions from verified subject matter experts
