jump to navigation

Performance of string August 20, 2006

Posted by Allu in JAVA, Uncategorized.
add a comment

+ operator gives best performance for String concatenation if Strings resolve at compile time

StringBuffer with proper initial size gives best performance for String concatenation if Strings resolve at run time.