+ 4
Why '8' * '7' = 3080?
Arithmetic operations in Java
2 Respuestas
+ 4
The characters in ' ' are converted to integers. The ASCII code for '7' is 55 and for '8' it is 56. 55*56==3080
ASCII code source: http://www.theasciicode.com.ar/
+ 1
Yes, it is true. Because the digits are in ' ', Java recognites them as chars. So the result is a multiplication of their ASCII codes, 56 * 55.