Java StringBuffer
StringBuffer is a class in Java whose object represents the mutable string. It is just like a string class except that its object can be modified. StringBuffer is synchronized, hence it is thread-safe. i.e. StringBuffer class objects are thread-safe, mutable sequences of characters. For these reasons, Java would handle an expression like String newString = … Read more