+ 1
Why is the output of System.out.print('2'+'2'); , 100?
'2'+'2' == 100
2 Respostas
+ 5
'2' is char literal. When char is involved in calculation, their ASCII code is used as value.
ASCII code for '2' is 50, I guess you now got it all figured out.
+ 1
Ipang thankkk u