Page 1 of 1

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

Posted: Tue Nov 22, 2022 8:20 am
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).

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

Posted: Wed Nov 23, 2022 9:54 am
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!

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

Posted: Sat Apr 20, 2024 8:44 pm
by likejudo
I did not notice d1 hidden in the corner! :(