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

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 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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: