Question: If you include three statements in a try block and follow the block with three Catch blocks, and the second statement in the try block

If you include three statements in a try block and follow the block with three Catch blocks, and the second statement in the try block throws an exception, Then___________.

A. The first catch block executes

B. The first two catch blocks execute

C. Only the second catch block executes

D. The first matching catch block executes

Step by Step Solution

3.39 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

D The fi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!