New course! Every coder should learn Generative AI!
Try a free lesson0
What is the purpose of StringBuffer in the following Java code?
1 Answer
+ 5
Main difference between String and StringBuffer is mutability.
String is immutable while StringBuffer is mutable