Social Sciences, asked by kaushlendravij4531, 1 year ago

Difference between stringbuffer stringbuilder and string

Answers

Answered by Raju2392
0
String is immutable, if you try to alter their values, another object gets created, whereas StringBuffer and StringBuilder are mutable so they can change their values. Thread-Safety Difference: The difference between StringBuffer and StringBuilder is that StringBuffer is thread-safe.
Similar questions