It is good to close the following in order properly
1. ResultSet
2. PreparedStatement
3. Connection
http://stackoverflow.com/questions/2363785/which-should-i-close-first-the-preparedstatement-or-the-connection
Or use the Common DBUtils class by Apache
http://commons.apache.org/dbutils/examples.html
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment