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.

Your Answer