Java – Difference between StringBuilder and StringBuffer

javastringbufferstringbuilder

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

Best Solution

StringBuffer is synchronized, StringBuilder is not.