Posts Tagged ‘Threads’
Unneccessary thread safety of StringBuffer
Use StringBuilder rather then StringBuffer, unless synchronization is required. StringBuilder is not thread safe, and therefore avoids the synchronization overhead of StringBuffer.
(submitted by Robert J. Walker)