What's the difference between StringBuilder and StringBuffer?

1 answers

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.

shilpigupta22 shilpigupta22 [Author] 4 months ago votes 0