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"
[HD-OCP17/21-Fundamentals Pg 424, Sec. 15.4.3 - managing-exceptions-encountered-while-closing-resources]
Moderator: admin
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD-OCP17/21-Fundamentals Pg 424, Sec. 15.4.3 - managing-exceptions-encountered-while-closing-resources]
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.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD-OCP17/21-Fundamentals Pg 424, Sec. 15.4.3 - managing-exceptions-encountered-while-closing-resources]
>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.
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.
Who is online
Users browsing this forum: Bing [Bot] and 12 guests