mathew murphy
07/24/2019, 6:10 PM"${var1}${var2}"
and var1 + var2
for string construction?Ruckus
07/24/2019, 6:11 PM"$var1$var2"
)mathew murphy
07/24/2019, 6:12 PMRuckus
07/24/2019, 6:15 PMCasey Brooks
07/24/2019, 6:15 PMStringBuilder
under-the-hood. I’m not sure about the second, if it goes to a StringBuilder or does normal String concatenation. But it should either be the same performance-wise or slightly fastermathew murphy
07/24/2019, 6:15 PMMarko Mitic
07/24/2019, 6:37 PMRuckus
07/24/2019, 6:41 PMMike
07/24/2019, 6:44 PM+
operations into StringBuilder in 8+ at least. Not sure if it does it in 6 or 7. So could depend on which version of JDK, and could depend on whether Kotlin compiler is turning it into +
, or turning it into StringBuilder?Cody Engel
07/24/2019, 6:53 PMSiebelsTim
07/24/2019, 9:36 PMlouis993546
07/29/2019, 5:55 PMStringBuilder
)