java string comparison with == method
<p>public class TestDoubleEqualString {</p>

<pre><code>/**
 * @param args
 */
public static void main(String[] args) {


    String s1=new String("abc");
    String s2=new String("abc");


    System.out.println(s1.hashCode());
    System.out.println(s2.hashCode());



    System.out.println(s1==s2);

    System.out.println(s1.equals(s2));


}
</code></pre>

<p>}</p>

<p>//Hi although my s1.hashcode() and s2.hashCode() are returning same value,then why s1==s2 is false.....</p>

<p>Thanks in advance</p>
