Oracle
1Z0-804 · Question #156
1Z0-804 Question #156: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #156. The question stem and answer options stay visible for context.
Question
Which two statements are true regarding the try with resources statement?
Options
- AThe resources declared in a try with resources statement are not closed automatically if an exception
- BIn a try with resources statement, any catch or finally block is run after the resources have been closed.
- CThe close methods of resources are called in the reverse order of their creation.
- DAll the resources must implement the java.io.closeable interface.
Unlock 1Z0-804 to see the answer
You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.