code: public static void closeQuietly(Connection conn, Statement stmt,
              ResultSet rs) {
  
          try {
              closeQuietly(rs);
          } finally {
              try {
                  closeQuietly(stmt);
              } finally {
                  closeQuietly(conn);
              }
          }
  
      }
docs: Close a <code>Connection</code>, <code>Statement</code> and
  <code>ResultSet</code>.  Avoid closing if null and hide any
  SQLExceptions that occur.
  
  @param conn Connection to close.
  @param stmt Statement to close.
  @param rs ResultSet to close.