1Z0-829 • Practice Test 11
Free 1Z0-829 practice test — 15 questions with explanations. Set 11. No signup required.
A Java application uses a custom resource class implementing AutoCloseable. The close() method throws a checked exception. In a try-with-resources block, if both the try block and the close() method throw exceptions, which exception is propagated to the caller? Assume the resource is declared in try-with-resources.