What i have,
suppose I am creating two object like below,
String s1 = "abc";
String s2 = s1;
System.out.println("== comparison "+ s1==s2);
i am expecting the output is
== comparison true
but i get
false
What is the problem?
I am not getting output as my expectation.
Question why it is not matching the expected output.
please reply and explain why it is coming like this.
Thanks in advance tofek khan