American Express interview question

What's the difference between StringBuilder vs. StringBuffer?

Interview Answer

Anonymous

Oct 27, 2018

StringBuffer is mutable and synchronized (Thread Safe), Very Slow StringBuilder is also mutable but its not synchronized (Not Thread Safe), Very Fast