Not if the concatenation is dynamic, like in a loop, and the JVM doesn’t know the number of concatenations in advance. As you can read from the article it could generate an high number of
StringBuilder objects instead of just 1.
Also the latest versions use
StringBuilder and, as it states in the…