Yes. '+' operator has more precendence than '==' operator. So it concantenated and then checks for equality. Ranchers correct me if I am wrong.
You're not wrong, this behavior is indeed down to operator precedence, whereby + preceeds ==, resulting in the comparison of two String object references: a reference to a String object with value "a == b is hello world" and a reference to a String object with value "hello world". This comparison fails and System.out.println() prints the boolean value "false". Same for the other System.out.println() invocation. [ March 27, 2008: Message edited by: Jelle Klap ]
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.