+ 3
What is difference between String, StringBuilder and StringBuffer in Java?
4 Antworten
+ 3
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.
+ 3
Mayur Shedage How is StringBuilder used in writing programs??
+ 3
thanks
+ 2
please check below link it may help you thanks
https://docs.oracle.com/javase/tutorial/java/data/buffers.html