Frage im Vorstellungsgespräch bei Qualitest

Difference b/w String Buffer and String Builder

Antworten zu Vorstellungsgespräch

Anonym

28. Apr. 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

Anonym

24. Mai 2018

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