Originally posted by Stevie Kaligis:
[B]System.out.println('2'+3+"");
will be evaluate : (('2'+3)+"")
1. ('2'+3) convert to integer,
2. ((50 + 3) + "")
output : 53
System.out.println( '2'+'3'+"");
will be evaluate : (('2'+'3')+"")
1. ('2'+'3') convert to integer,
2. ((50 + 51) + "")
output : 101
Stevie:
Could you please explain how '2' in char evaluates to 50 in int?
Thanks.