Since Java 5, <code>StringBuffer</code> has been supplemented with an equivalent class designed for use by a single thread, <code>StringBuilder</code>.

<code>StringBuilder</code> is faster, as it performs no synchronization, and should be preferred.

