What's the difference between StringBuilder and StringBuffer?

Solution:

StringBuffer is a synchronized type, while the StringBuilder is not. The StringBuilder was created as a replacement for the StringBuffer used in a single thread, making the StringBuilder usually faster.

0 answers