Public ResultSet get (String SQL) throws SQLException {
The ResultSet set=null;
Try {
The set=STMT. ExecuteQuery (SQL);
Return the set;
} the finally {
Set. The close ();
}
}
I want to return results after emptying the ResultSet don't know this useful,
CodePudding user response:
Can't return a resultset object, set in the final has shut down, this method performs outside the method should be unable to use