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?

image text in transcribed

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  book-img-for-question
Question Posted: