What is the difference between String, StringBuilder, and StringBuffer in Java? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

What is the difference between String, StringBuilder, and StringBuffer in Java?

20th Jul 2020, 5:14 AM
sadeepa lakshan
sadeepa lakshan - avatar
2 Réponses
0
String is an immutable, array of characters. Stringbuilder is used to modify a given string. String buffer is a writable character sequence
20th Jul 2020, 6:35 AM
Jay Gilbert Garzon
Jay Gilbert Garzon - avatar