Friday, October 29, 2010

Difference between StringBuilder and StringBuffer

StringBuffer class is threadsafe and all public methods in it are synchronized
where as StringBuilder class cannot handle thread-safe issues and its methods
are not thread safe...

But often StringBuilder has better performance than StringBuffer..

No comments: