I’ve read multiple places that in Java 1.5+ String concatenations are optimized to using a StringBuilder when a program is compiled. It’s unclear to me if this is a standard or just a common optimization many compilers employ. Any clarificion in regards to this would be appreciated, but mainly it’s a lead-in to my second question.
Does .NET similarly optimize? I’m aware that if I use StringBuilder this will eliminate any ambiguity but I personally find the simplicity of + easier to read. If .NET does, did this start in a specific version? Elaboration is appreciated.
Hope this will give you a better view towards StringBuilder then string conctenation with +
MSDN