Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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.
 
PREVIOUS NEXT
Tagged: #java #string #stringbuilder
ADD COMMENT
Topic
Name
8+8 =