Answers for "string vs stringbuilder java"

2

java string vs stringbuilder

A String can be used when immutability is required, or concatenation operation is not required. A StringBuilder can be used when a mutable string is needed without the performance overhead of constructing lots of strings along the way.
Posted by: Guest on September-06-2021
1

string vs stringbuilder

String is immutable and thread safe
String builder mutable and not thread safe
Posted by: Guest on January-05-2021

Code answers related to "string vs stringbuilder java"

Browse Popular Code Answers by Language