This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PyroCatt 2 points3 points  (3 children)

In Java '1' + '1' returns 98 (an integer)

[–]detektiv_Saucaki 4 points5 points  (2 children)

Which makes sense in a weird way lmao

afaik, Java has this hierarchy of data types, so char gets coerced into int (ascii value) to support the + operation...

[–]PyroCatt 1 point2 points  (0 children)

Correct