String concatenation Notes

java only passed by value (a method parameter) 

string concatenation when only pure constant splicing operation + will not pass for StringBuilder
to find whether there has been constant values directly in the pool
otherwise, as long as there is a string variable + will turn StringBuilder call append (), so new a new space

Guess you like

Origin www.cnblogs.com/hetaoyuan/p/11241823.html