-2

Is the word "buffer" indicating synchronization in StringBuffer? if I assume yes, how is it done?

Alireza Jamali
  • 302
  • 2
  • 6
  • 17
  • Check https://stackoverflow.com/questions/355089/difference-between-stringbuilder-and-stringbuffer – Arvind Kumar Avinash Mar 07 '20 at 14:35
  • I'm voting to close this question as off-topic because remembering names is not a programming problem. It is a fun question, but still off topic I believe – tkruse Mar 07 '20 at 15:34

1 Answers1

4

The word "Buffer" is not related to the synchronization. It is just a convenient buffer to collect and manipulate a string.

StringBuilder was invented later to provide better performance. Again, the word "Builder" is not related to the synchronization.

Stefan
  • 1,789
  • 1
  • 11
  • 16