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.
Subscribe to:
Post Comments (Atom)
James Liu is a technical professional who has a lot of passion on software development, both technology and process.
No comments:
Post a Comment