title: Incompatible operand type between variable and string
body: <p>I'm facing an error of incompiatble operand type between one my variable and string. Here's a snippet of my code. The error happens @ if ( handler == "CLOSE" )</p>
  
  <p>On top of that, did I connet my db correctly? There should be a 'public void closeDB but there's error when include the statement. </p>
  
  <pre><code>private DBHandler handler;
  public void openDB() throws SQLException
      {
          // Open the DB Connection
          final String DBURL = "example";
          final String DBUSER = "example";
          final String DBPASS = "example";
  
          DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
          Connection con = DriverManager.getConnection(DBURL, DBUSER, DBPASS);
          Statement statement = con.createStatement();
      }
  
      public void setFileName(String fileName)
      {
          this.fileName = fileName;
      }
  
      public void setMySQL( String mySQL )
      {
          this.mySQL = mySQL;
      }
  
      public ResultSet retrieveTheData(  ) throws SQLException
      {
          if ( handler == null )
          {
              // Create a new connection
          }
  
          if ( handler == "CLOSE" )
          {
              // Open the connection
          }
  
          // Message the Data 
  
  
          ResultSet rs;
          return rs;
      }
  </code></pre>