> System.out.println((s1==s2)+" "+ s1==s2); is interpreted as
System.out.println( (((s1==s2) + " ") + s1) == s2) because "+" has
priority over "=="
so the comparision is between two parts
first part :((s1==s2) + " dd ") + s1 ==> true Hello
second part s2
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---