Question: Which one is incorrect? If the try/catch simply catches Exception, there is no need to catch any other exceptions. A RuntimeException does not need to
Which one is incorrect? If the try/catch simply catches Exception, there is no need to catch any other exceptions. A RuntimeException does not need to be handled during the compile time. The Java Exception class is the superclass of any exceptions. A program without handling compile time exceptions can be executed. Divided by zero is a RuntimeException
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
