java.lang.StringBuffer
java.lang.StringBuffer is a class that represents an immutable character string.
Hints
The StringBuffer class is a better alternative than the java.lang.String class, when concatenating a series of strings. If you are getting poor performance using StringBuffer objects, try using character arrays instead.
Also, examine the use of StringBuffer objects in multi-threaded applications. Because all of the methods in a multi-threaded application are synchronized, performance may degrade if many threads try to access the same StringBuffer object at the same time.
Related Topics java.lang.String.