when do we use stringBuilder class? code example Example: stringbuilder It is mutable char sequence and it is not thread safe.