What is difference between string buffer and string builder?
Answers
Answered by
0
StringBuffer is mutable means one can change the value of the object . The object created through StringBuffer is stored in the heap. StringBuffer has the same methods as the StringBuilder , but each method in StringBuffer is synchronized that isStringBuffer is thread safe .
Similar questions