Adding on to a StringBuffer is [also] quite a bit faster than the + operator, which creates a new StringBuffer itself, appends both of the arguments, and converts the result back to a String
Originally posted by Ilja Preuss:
Can you show us the benchmark code?
Also, what JDK did you run this on? This might heavily affect performance differences.