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
The correct option is C must contain is not required to contain either Explanation 1 A regular try s... View full answer
Get step-by-step solutions from verified subject matter experts
