What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when deciding on any one of these?
StringBuffer
StringBuilder
String is an immutable.
String
StringBuffer is a mutable and synchronized.
StringBuilder is also mutable but its not synchronized.