About Question enthuware.ocpjp.v11.2.1033 :

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

Moderator: admin

Post Reply
jeroenisanders
Posts: 5
Joined: Sun Feb 07, 2021 9:49 am
Contact:

About Question enthuware.ocpjp.v11.2.1033 :

Post by jeroenisanders »

When adding throws this also works. Behind the scenes, the compiler replaces a try-with-resources block with a try and finally block. So not mandatory to put a catch or finally block

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v11.2.1033 :

Post by admin »

Please read the problem statement carefully. It is explicitly about the try without resources statement.

jeroenisanders
Posts: 5
Joined: Sun Feb 07, 2021 9:49 am
Contact:

Re: About Question enthuware.ocpjp.v11.2.1033 :

Post by jeroenisanders »

Okay clear. Thanks.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests