String, + , StringBuilder

weixin_34120274發表於2011-09-09
The Java Language Specification, Third Edition
15.18.1.2 Optimization of String Concatenation
An implementation may choose to perform conversion and concatenation in one step to avoid creating and then discarding an intermediate String object. To increase the performance of repeated string concatenation, a Java compiler may use the StringBuffer class or a similar technique to reduce the number of intermediate String objects that are created by evaluation of an expression.

http://blog.csdn.net/wzju64676266/article/details/5874703
 

相關文章