About Question enthuware.ocpjp.ii.v11.2.3358 :
Moderators: Site Manager, fjwalraven
-
- Posts: 4
- Joined: Fri Jan 17, 2014 6:08 am
- Contact:
About Question enthuware.ocpjp.ii.v11.2.3358 :
Maybe an extra explanation is in order for the fact that try(d1; ...) is a thing now (the object itself is created before the try statement).
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3358 :
Explanation has been enhanced to explain that it is ok to put d1 in try-with-resources block because it is effectively final.
thank you for your feedback!
thank you for your feedback!
-
- Posts: 29
- Joined: Sun Feb 18, 2024 7:21 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3358 :
I did not notice d1 hidden in the corner! 

Who is online
Users browsing this forum: No registered users and 12 guests