Question: When an exception is thrown by code in the try block, the JVM begins searching the try statement for a catch clause that can handle
When an exception is thrown by code in the try block, the JVM begins searching the try statement for a catch clause that can handle it and passes control of the program to:
each catch clause that can handle the exception.
the last catch clause that can handle the exception.
the first catch clause that can handle the exception.
If there are two or more catch clauses that can handle the exception, the program halts.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
