StringBuffer obsession

For those of you who are obsessed with reusing StringBuffers, take a look at this. They’re good for adding strings up, but once you’re done, throw it away and get a new one. There’s no need to clear it and use it again.

Like what I say, too much of anything is no good.

btw this was talking about JDK1.4 in 2003. It’s probably worth a re-investigation 5 years from then, in JDK6 (or 7).

Leave a Reply