What is the difference between StringBuffer and StringBuilder classes in java?
apart from performance and multithreading theirs no such difference. StringBuffer is slower in performance and mostly used in multithreaded environment.
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
You're welcome Gauri Shirkande