Question d’entretien chez Deloitte

Difference between StringBuffer and StringBuilder?

Réponse à la question d'entretien

Utilisateur anonyme

10 mai 2021

StringBuffer operations are threadsafe and synchronized whereas StringBuilder is the opposite. StringBuffer is used when multiple threads are working on same string where as StringBuilder is in single-threaded environment..