+ 2
StringBuffer is synchronized i.e. thread safe. It means two threads can't call the methods of StringBuffer simultaneously. StringBuilder is non-synchronized i.e. not thread safe. It means two threads can call the methods of StringBuilder simultaneously.
9th Oct 2016, 4:32 PM
Abhinav Maurya
Abhinav Maurya - avatar