Question: Fill in the blanks: A try statement ______________ a catch or a finally block, while a try-withresources statement ______________. A. is not required to contain,

Fill in the blanks: A try statement ______________ a catch or a finally block, while a try-withresources statement ______________.

A. is not required to contain, is not required to contain either

B. is not required to contain, must contain one of them

C. must contain, is not required to contain either

D. must contain, must contain a catch block

E. None of the above.

Step by Step Solution

3.43 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The correct option is C must contain is not required to contain either Explanation 1 A regular try s... 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 Oracle Questions!