|
I forgot the answer the question ,BTW In java the expressions are evaluated from left to right
hence first one will evaluated as character
and second one will be an int type. The ascii value of 'X' is 88
Say what will happen
System.out.println( 2 + 2 + "2") // print 4
System.out.println( "" +2 + 2 ) // print 22
|