Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    Actually, it won't transform it to that at all. (At least not the Oracle compiler.) Commented Jul 8, 2014 at 19:18
  • With string literals I don't think the compiler has to use a StringBuilder. Now if you concatenated args into one String it would look something like that. It means the JVM will use a StringBuilder to perform String concatenation, since Java String(s) are immutable. Commented Jul 8, 2014 at 19:21
  • Like for your String taken :D Commented Jul 9, 2014 at 17:41