Qualitest Interview Question

Difference b/w String Buffer and String Builder

Interview Answers

Anonymous

Apr 28, 2016

string BUFFER : string buffer is mutable class where we can change the existance one after JDK 1.5 version it comes on IT industry string buffer is thread safe where string builder is not thread safe string buffer is syncronized whereas string builder is not syncronized

Anonymous

May 24, 2018

StringBuffer synchronized StringBuilder is non-Synchronized. StringBuffer is Thread-safe. StringBuilder is not Thread-safe. StringBuffer performance is low. StringBuilder performance is High.