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

1 Expert Approved Answer
Step: 1 Unlock

d The finalize method is like any other method It can be called explicitly if it is a... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!