Page 1 of 1
[HD-OCP17/21-Fundamentals Pg 424, Sec. 15.4.3 - managing-exceptions-encountered-while-closing-resources]
Posted: Fri Sep 27, 2024 5:30 am
by raphaelzintec
Managing exceptions encountered while closing resources & "suppressed exceptions are not in OCP 17?
btw here add space maybe close() method:
"Let’s see how that works by modifying the close()method of the above mentioned Device class as follows"
Re: [HD-OCP17/21-Fundamentals Pg 424, Sec. 15.4.3 - managing-exceptions-encountered-while-closing-resources]
Posted: Fri Sep 27, 2024 6:18 am
by admin
Yes, there is an issue with the formatting in many places where a word in regular font follows a word in monospace (i.e. Java code) font. This is actually an issue with the formatting program that generates the book. We are trying to figure out a solution.
Re: [HD-OCP17/21-Fundamentals Pg 424, Sec. 15.4.3 - managing-exceptions-encountered-while-closing-resources]
Posted: Fri Sep 27, 2024 6:19 am
by admin
>Managing exceptions encountered while closing resources & "suppressed exceptions are not in OCP 17?
Yes, the OCP 17 exam doesn't go into details of how exceptions are suppressed when multiple exceptions are thrown while closing resources using the try-with-resources block. But OCP 21 exam wants you to know those details.