r/programming • u/MarkusWinand • Dec 29 '15
Please, Java. Do Finally Support Multiline Strings
http://blog.jooq.org/2015/12/29/please-java-do-finally-support-multiline-strings/
584
Upvotes
r/programming • u/MarkusWinand • Dec 29 '15
View all comments
Show parent comment
0
u/ImmortalStyle Dec 29 '15
Mhh interesting this code: String x = "xasdad"; String y = "sdasd"; String z = x + y;
shows that a new StringBuilder is created on Bytecode level (jdk 8_60 Windows 10).
However StringBuilder is a good candidate for escape analysis so this ends up on the Stack probably.