Difference between these two appraoch in calling equals method?
<p>Approach one.</p>

<pre><code>if (graphType.equals("All") || graphType.equals("ALL"))
</code></pre>

<p>Aprroach two.</p>

<pre><code>if ("All".equals(graphType) || "ALL".equals(graphType))
</code></pre>

<p>What is the difference between these two approaches?
Why the below one is better?</p>
