I think this questions came from programmers guide to
java certification by khlid mughal
When you say (1+2) this give you 3 plus the
string that mean 3+�3� =3 for 1+2 and other 3 for string
When you say string plus number it will take it as string mean if you add string to variable it will as all string �1�+2 that give you 12 and +3 will give 123 all deal like string