What happens when an exception is thrown, a try-with-resources statement calls close, and that call throws an
Question:
What happens when an exception is thrown, a try-with-resources statement calls close, and that call throws an exception of a different kind than the original one? Which one is caught by a surrounding catch clause? Write a sample program to try it out.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: