About Question enthuware.ocpjp.ii.v11.2.3358 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
mdraisma
Posts: 4
Joined: Fri Jan 17, 2014 6:08 am
Contact:

About Question enthuware.ocpjp.ii.v11.2.3358 :

Post by mdraisma »

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

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

Re: About Question enthuware.ocpjp.ii.v11.2.3358 :

Post by admin »

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!

likejudo
Posts: 29
Joined: Sun Feb 18, 2024 7:21 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3358 :

Post by likejudo »

I did not notice d1 hidden in the corner! :(

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests