Java concatenation of primitive type to String
-
19-06-2021 - |
Question
Is the reason you can concatenate a primitive type to a String due to autoboxing?
Solution
No.
The java language handles concatenation of primitives with Strings natively.
It was part of the language's first release - pre-dating autoboxing by about 10 years
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow