Tan Quang wrote:StringBuffer is faster than StringBuilder in my test code (perhaps or sure) is due to the difference between the Java versions?! No. It's probable that by the time execution reaches the code that tests StringBuffer, the JVM has warmed up enough that it appears this code ...