StringBuffer
Class StringBuffer
- java.lang.Object
-
- java.lang.StringBuffer
- All Implemented Interfaces:
- Serializable, Appendable, CharSequence
public final class StringBuffer extends Object implements Serializable, CharSequence
A thread-safe, mutable sequence of characters. A string buffer is like a String
, but can be modified. At any point in time it contains some particular sequence of characters, but the length and content of the sequence can be changed through certain method calls.
String buffers are safe for use by multiple threads. The met