Which is correct usage of equals method in java?
<p>Simple question, which is correct way of using <code>equals</code>, also provide reasoning behind answer. </p>

<pre><code>"Delta".equals(type) 
</code></pre>

<p>or </p>

<pre><code>type.equals("Delta")
</code></pre>
