The "use StringBuilder" is much too general. Maybe have a look at the following talk by Heinz Kabutz: youtu.be/z3yu1kjtcok
He talks an hours about Java Strings and performance.
For performance surprises, the following talk is also a recommendation: youtu.be/fN3MtD-lNHc
Its conclusion, which I support, is: Performance is full of surprises, write clean code. If necessary focus on the hot spots.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The "use StringBuilder" is much too general. Maybe have a look at the following talk by Heinz Kabutz:
youtu.be/z3yu1kjtcok
He talks an hours about Java Strings and performance.
For performance surprises, the following talk is also a recommendation: youtu.be/fN3MtD-lNHc
Its conclusion, which I support, is: Performance is full of surprises, write clean code. If necessary focus on the hot spots.