Question OOP-EXC-0070
HardIn Java, what happens to an exception thrown inside a try-with-resources block when closing the resource also throws?
- A.
The close() exception is added as a suppressed exception to the original
- B.
The program exits
- C.
Sign up free to see the answer and a step-by-step explanation.