stringbuffer


The key distinction between StringBuffer and StringBuilder is that ThreadSafe is not a feature of StringBuilder. Since StringBuilder is not thread-safe, it is quick. Strings are also immutable since arrays are immutable (cannot expand). A completely new string is produced whenever a string is modified.