SyntaxFix
Write A Post
Hire A Developer
Questions
A String is an immutable object which means the value cannot be changed whereas StringBuffer is mutable.
String
StringBuffer
The StringBuffer is Synchronized hence thread-safe whereas StringBuilder is not and suitable for only single-threaded instances.
StringBuilder