About Question enthuware.ocpjp.v11.2.1033 :
Moderator: admin
-
- Posts: 5
- Joined: Sun Feb 07, 2021 9:49 am
- Contact:
About Question enthuware.ocpjp.v11.2.1033 :
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
Online
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.1033 :
Please read the problem statement carefully. It is explicitly about the try without resources statement.
-
- Posts: 5
- Joined: Sun Feb 07, 2021 9:49 am
- Contact:
Re: About Question enthuware.ocpjp.v11.2.1033 :
Okay clear. Thanks.
Who is online
Users browsing this forum: Bing [Bot] and 12 guests