think this is because of the presence of string int the expression, so all further operands are treated as string.
7+2 is : 9
7+2 in same SOP is : 72
(7+2) in braces is : 9
Originally posted by Amit Ghorpade :
The discussion above concludes the fact that when string is present in the println method's expression, the remaining operands are converted to string.