a bit of resources. So it's good to keep in the habit of closing them
as soon as possible.

OK; lots more try/finally blocks needed, then!

Unfortunately true, at least for now.

I've read that this will be improved in JDK 1.7 / JDBC 4.1, though:

http://aruld.info/introducing-try-with-resources-can-project-coin-become-crown-jewel-of-java-7/

That's still a bit off in the future, but keep an eye on it, as it
will be a valuable improvement when it arrives.

thanks,

bryan

Reply via email to