I am not sure if this is the right place to ask this.
I was looking into different ways to concat a string in java.
Found out that concatenating with +
is inefficient when done in loops as it creates new objects every time.
Where is the code that does the concatenation when +
is used written? I was able to look at implementations of StringBuilder, concat() and StringBuffer but cannot find the implementation for +
.
Apologies if this is the wrong forum.