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: 10036
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.

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests