public static void closeQuietly(Statement stmt){
  if (stmt == null) {
    return;
  }
  try {
    stmt.close();
  }
 catch (  SQLException ex) {
  }
}

public static void closeQuietly ( Statement stmt ) { if ( stmt == null ) { return ; } try { stmt . close ( ) ; } catch ( SQLException ex ) { } }
helper method to quietly close statements .
