Pregunta de entrevista de Qualitest

Difference b/w String Buffer and String Builder

Respuestas de entrevistas

Anónimo

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

Anónimo

24 de may 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.