Certification book by Ioworski states that
when you compare s1 and s2 they are not equal..Pls see the below pgm for explanation..but its very simple
***Pgm***
String s1 = "ab";
String s = s1 + "cd";
String s2 = "abcd";
System.out.println( s1 == s2 );
********
According to my knowledge, s1 == s2 will return true and the output will be true.
But Iowroski says the output will be false.
------------------