title: Why is it advisable to use String.isEmpty() to check String is empty or not over String.length() method?
body: <p>I got a coding review comment about my use  of <code>String.length()</code> to see whether String is equal to <code>""</code> ie contains no char or not.</p>
  
  <p>I was using <code>String.length()==0</code> in my code.</p>
  
  <p>I didn't understand why <code>String.isEmpty()</code> is recommended is it because of performance reason or some other reason?  </p>