title: Any difference between String = null and String.isEmpty?
body: <p>Is there any difference when using a if-statement to check if the string is empty by using String = null or String.isEmpty() ?</p>
  
  <p>ie:</p>
  
  <pre><code>public String name;
  
  if(name == null)
  {
      //do something
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>public String name;
  
  if(name.isEmpty())
  {
      //do something
  }
  </code></pre>
  
  <p>if there is any different (including performance issues) please let me know.</p>