Domanda di colloquio di Qualitest

Difference b/w String Buffer and String Builder

Risposte di colloquio

Anonimo

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

Anonimo

24 mag 2018

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