why do these statements give different answers?
String s1="hello world";
String s2="hello world";
System.out.println(s1.equals(s2));//true
System.out.println(s1 == s2);//true
2nd case;
String s1=new String("hello world");
String s2=new String("hello world");
System.out.println(s1.equals(s2));//true
System.out.println(s1 == s2);//false