[HD-OCP17/21-Fundamentals Pg 424, Sec. 15.4.3 - managing-exceptions-encountered-while-closing-resources]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

[HD-OCP17/21-Fundamentals Pg 424, Sec. 15.4.3 - managing-exceptions-encountered-while-closing-resources]

Post 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"

admin
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]

Post 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.

admin
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]

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests