What is the purpose of StringBuffer in the following Java code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the purpose of StringBuffer in the following Java code?

https://code.sololearn.com/c0ITba7fX5Y1/?ref=app

30th Nov 2019, 12:23 PM
Chinmay Chirag6
1 Answer
+ 5
Main difference between String and StringBuffer is mutability. String is immutable while StringBuffer is mutable
30th Nov 2019, 1:02 PM
Raj Chhatrala
Raj Chhatrala - avatar