title: java "if" and "if-else" performance
body: <p>I´m wondering if there is a difference between this statement.</p>
  
  <pre><code>public String returnSomething() {
    String result = null;
    if(isOK) {
      result = "YES";
    }
    result = "NO";
    return result;
  }
  </code></pre>
  
  <p>and this one</p>
  
  <pre><code>public String returnSomething() {
    String result = null;
    if(isOK) {
      result = "YES";
    } else {    
      result = "NO";
    }
    return result;
  }
  </code></pre>
  
  <p>Which one has the best performance? Which one is the best practice?</p>