Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
StringBuffer and StringBuilder have the same methods with one differenceand that's of synchronization. StringBuffer is synchronized( which means it is thread safe and hence you can use it when you implement threads for your methods) whereas StringBuilder is not synchronized( which implies it isn't thread safe).
28th Nov 2016, 5:10 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar