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:
Post a Comment