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.

Related questions

0 votes
asked May 12 in JAVA by rahuljain1
0 votes
asked Apr 24 in JAVA by Robin
...