How to integrate the common JDBC idiom of creating/receiving a connection, querying the database and possibly processing the results with Java 7\'s automatic resource manage
IMO, declaring Connection and PreparedStatement outside try-catch is the best way available in this case.