1.StringBuilder : Instances of
StringBuilder
are not safe for
use by multiple threads. If such synchronization is required then it is
recommended that
{@link java.lang.StringBuffer}
be used.
2.
StringBuffer :
String buffers are safe for use by multiple threads. The methods
are synchronized where necessary so that all the operations on any
particular instance behave as if they occur in some serial order
that is consistent with the order of the method calls made by each of
the individual threads involved