Which statements about try-with-resources are false? (Choose two.) A. If more than one resource is used, the
Question:
Which statements about try-with-resources are false? (Choose two.)
A. If more than one resource is used, the resources are closed in the order they were created.
B. Parentheses are used for the resource declaration section, even if more than one resource is used.
C. If the try block and close() method both throw an exception, then the one thrown by the close() method is suppressed.
D. A resource may be declared before it is used in a try-with-resources statement.
E. Resources declarations are separated by commas.
F. A catch block is not required.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam 1Z0 817
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky
Question Posted: