Tuesday, July 21, 2009

String, Stringbuilder, and stringbuffer

String is good for substring, not add extra time.
For concat(), string builder is better, but JVM automatically does it for you.
Stringbuilder is not thread-safe
Stringbuffer is thread-safe.

No comments:

Post a Comment