What is considered best practices when cleaning up JDBC resources and why? I kept the example short, thus just the cleaning up of the ResultSet.
finally {
ResultSet rs = //initialize here try { // do stuff here } finally { try { rs.close(); } catch(SQLException ignored) {} }