Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6
String is immutable and that means the value for a specific object can't be changed, rather a new object will be created in the memory. This has a great significance in programming but that's other topic. Unlike String, StringBuffer is a mutable class and it's objects' value can be changed through various methods available.
23rd Jun 2020, 11:06 AM
Sujal Kumar
Sujal Kumar - avatar