What is the main difference between StringBuffer and StringBuilder?

  Jul 22, 2015

What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when deciding on any one of these?

Solved 0
3 years ago 1 Answer 15 views

Answers ( 1 )

  1. 3 years ago

    Basically, StringBuffer methods are synchronized while StringBuilder are not.

    The operations are "almost" the same, but using synchronized methods in a single thread is overkill.

    That's pretty much about it.

*Avoid using any other website url of links , otherwise your answer may not be visible on website until verification is complete.

Your Answer