String : The String
class represents character strings.(Since 1.0)
StringBuffer : A thread-safe, mutable sequence of characters.(Since 1.0)
StringBuilder : A mutable sequence of characters.(Since 1.5)
Instances of StringBuilder
are not safe for use by multiple threads.
If such synchronization is required then it is recommended that StringBuffer be used.