What is the purpose of StringBuffer in the following Java code? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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