On Jul 20, 5:42 pm, Nimisha Sinha <[email protected]> wrote:
> In Java,String literals are stored in a literal pool.If two string literals
> are having same content,their references will be same too.
Sorry, I was reading a little too quick.

It seems that it is related to the way the line is interpreted. Since
there is no parentheses in the second part it is probably viewes as:
is the string a space plus s1 equals to s2, which is not, hence false,
then the first part is true, and false plus true equals false.
At least, it was what appears when playing with boolean object and
parentheses.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to