Pergunta de entrevista da empresa Qualitest

Difference b/w String Buffer and String Builder

Respostas da entrevista

Sigiloso

28 de abr. de 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

Sigiloso

24 de mai. de 2018

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