Use closeStatement() and closeConnection(). When you close the Statement, you'll close any of its ResultSets. However, if you just close the ResultSet and not the Statement, you'll leak resources and cause unpredictable problems.