+ 1
What is the difference between StringBuffer and StringBuilder classes in java?
4 Answers
+ 2
apart from performance and multithreading theirs no such difference.
StringBuffer is slower in performance and mostly used in multithreaded environment.
+ 1
Basically, both are used for same purpose. StringBuffer class is synchronised means two threads can't use it simultaneously whereas StringBuilder is not. For more details you can go through the article below.
Thank you
https://www.javatpoint.com/difference-between-stringbuffer-and-stringbuilder
+ 1
Thank you!š
0
You're welcome Gauri Shirkande