0 votes
in JAVA by
Which method is used to catch any type of exception in Java?

a) catchAll()

b) catch(Exception e)

c) catch(Throwable t)

d) catch(Exception e, Throwable t)

1 Answer

0 votes
by

Answer: c) catch(Throwable t)

Explanation: The catch(Throwable t) method is used to catch any type of exception in Java.

...