Which method headers will result in a correct implementation of a finalizer for the following class? Select
Question:
Which method headers will result in a correct implementation of a finalizer for the following class?
Select the two correct answers.
(a) void finalize() throws Throwable
(b) void finalize() throws Exception
(c) void finalize()
(d) protected void finalize() throws Throwable
(e) protected void finalize() throws Exception
(f) protected void finalize()
(g) public void finalize() throws Throwable (h) public void finalize() throws Exception (i) public void finalize()
(j) private void finalize() throws Throwable (k) private void finalize() throws Exception (l) private void finalize()
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen
Question Posted: