What is wrong with the following code? Select the one correct answer. (a) The main() method must
Question:
What is wrong with the following code?
Select the one correct answer.
(a) The main() method must declare that it throws B.
(b) The finally clause must follow the catch clause in the main() method.
(c) The catch clause in the main() method must declare that it catches B rather than A.
(d) A single try block cannot be followed by both catch and finally clauses.
(e) The declaration of class A is illegal.
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: