SyntaxFix
Write A Post
Hire A Developer
Questions
Also the complexity of concatenations of String is O(N2), while for StringBuffer it is O(N).
So there might be performance problem where we use concatenations in loops as a lot of new objects are created each time.