What is difference between String, StringBuilder and StringBuffer in Java?
String is immutable, if you try to alter their values, another object gets created, whereas StringBuffer andStringBuilder are mutable so they can change their values. Thread-SafetyDifference: The difference between StringBuffer and StringBuilder is thatStringBuffer is thread-safe.
Mayur Shedage How is StringBuilder used in writing programs??
please check below link it may help you thanks https://docs.oracle.com/javase/tutorial/java/data/buffers.html