why are we using stringbuilder in java code example Example: what is stringbuilder It is mutable char sequence and it is not thread safe.