Collection of bad coding practices

Posts Tagged ‘Threads

Unneccessary thread safety of StringBuffer

leave a comment »

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)


Written by Alex

August 22, 2008 at 4:07 am

Posted in Strings, Threads

Tagged with , ,