Hi there! I have this question from the Kathy Sierra book OCP
Java SE 8 (Chapter 3, question 9)
Which exceptions will the code throw?
The correct answer is:
D. "
RuntimeException c with no suppressed exception"
The explanations says: "While the exception caught by the catch block matches choice
A (IOException with suppressed
RuntimeException a), it is ignored by the catch block. The catch block just throws
RuntimeException c without any suppressed exceptions.
I really don“t understand
why the exception thrown by the close method is not a suppressed exception?
Thank you for the help!