Implicit declaration of resources in try statement

konstantin barzilovich konstantin.barzilovich at oracle.com
Wed Mar 25 14:44:15 UTC 2015


Hello, Jan

Would you please clarify, what does it mean to declare resource of try 
statement implicitly.
As I understand, explicit declaration is:

try (AutoCloseable ac = new AutoCloseable()) {}

Thanks,
Konstantin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20150325/107e4b28/attachment.html>


More information about the compiler-dev mailing list