224k views
4 votes
Which is the correct code to declare a catch-all handler?

a. catch (AllException excpt) {…}
b. catch (Exception excpt) {…}
c. catch (Throw excpt) {…}
d. catch (Throwable excpt) {…}

1 Answer

3 votes

Answer:

A

Step-by-step explanation:

Hopefully this helps

User PlugInBoy
by
6.1k points