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
4 years ago
1
Answer 15
views
Answers ( 1 )
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.