title: Java : "xx".equals(variable) better than variable.equals("xx") , TRUE?
body: <p>I'm reviewing a manual of best practices and recommendation coding java I think is doubtful.</p>
  
  <p>Recomendation:</p>
  
  <pre><code>String variable;
  
  "xx".equals(variable) // OK
  
  variable.equals("xx") //Not recomended
  </code></pre>
  
  <p>Because prevents appearance of NullPointerException that are not controlled</p>
  
  <p>Is this true?</p>