Economy, asked by pratham4485, 1 year ago

What is difference between string buffer and string builder?

Answers

Answered by pragati9580
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