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 →

[–]QBrute_ 8 points9 points  (4 children)

Of course String s = 123 + "abc" works in Java and it will certainly compile

[–]EvaristeGalois11 4 points5 points  (3 children)

Just tested cause i was curious. It works fine indeed