Originally posted by ramya sri:
why System.out.println(s1==s2+" , "+(s1==s3)); giving output as "false" instead false , true
The "+" operator has higher precedence than the "==" operator, so...
s1==s2+" , "+(s1==s3)
is basically like ...
s1==(s2+" , "+(s1==s3))
Henry