Pourquoi utiliser StringBuilder? StringBuffer peut fonctionner avec plusieurs threads ainsi qu'un thread?

Supposons que notre application ont qu'un seul thread. et nous utilisons StringBuffer alors quel est le problème?

Je veux dire, si StringBuffer peut gérer plusieurs threads grâce à la synchronisation, quel est le problème à travailler avec un seul fil?

Pourquoi utiliser StringBuilder à la place?

source d'informationauteur MANISH PATHAK