@Override public synchronized void close() throws SQLException {
  if (conn != null) {
    try {
      conn.close();
    }
  finally {
      conn=null;
    }
  }
}

@ Override public synchronized void close ( ) throws SQLException { if ( conn != null ) { try { conn . close ( ) ; } finally { conn = null ; } } }
close the connection and release any resources .
