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

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

Moderator: admin

Post Reply
mdraisma
Posts: 5
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: 10055
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!
If you like our products and services, please help us by posting your review here.

likejudo
Posts: 24
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: admin and 38 guests