What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when deciding on any one of these?
StringBuffer
StringBuilder
Since StringBuffer is synchronized, it needs some extra effort, hence based on perforamance, its a bit slow than StringBuilder.