Page 1 of 1

New JDBC feature in Java 7

Posted: Thu Aug 09, 2012 11:27 am
by Devov
We can now declare jdbc resources within the try clause ie: try(Statement stmt = con.createStatement()) { }
and they will be automatically closed even if there is an Exception :D

I'm guessing this is the convo Walt and Zaneo were having a while back when Doozy was steam IMing me about the
confusing "try{} catch{} finally{}" programmer chat in minecraft. I wish I'd read the change logs a month ago...

Re: New JDBC feature in Java 7

Posted: Thu Aug 09, 2012 8:50 pm
by Doozy
Smells like nerd in here!

Re: New JDBC feature in Java 7

Posted: Sun Aug 12, 2012 2:26 am
by Zaneo
Oh hey, yeah we've had that in C# for a while...