Java question designed to trick you 😭 #java #computerscience #softwareengineer

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

What genius thought that + should concatenate strings but implicitly convert chars to integers… I’d get it in c, where types aren’t as robust and everything is really just a number (also they don’t use + for str concatenation), but in a higher level language this just seems stupid.

baconboyxy
Автор

You just earned +0 points for this answer!

OM-spwk
Автор

I haven’t done Java in a while I was like it’s Kira then I was like single quotes what do those do in Java because I never used them in Java and just guessed that they would be the odd one so I got it

malekabdoh
visit shbcf.ru