Page 1 of 1

About Question enthuware.ocpjp.v11.2.1033 :

Posted: Sun Feb 07, 2021 10:56 am
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

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

Posted: Sun Feb 07, 2021 10:16 pm
by admin
Please read the problem statement carefully. It is explicitly about the try without resources statement.

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

Posted: Sat Feb 13, 2021 4:26 am
by jeroenisanders
Okay clear. Thanks.