title: String concatenation in a for loop. Java 9
body: <p>Please correct me if i'm wrong. In Java 8, for performance reasons, when concatenating several strings by the "+" operator StringBuffer was invoked. And the problem of creating a bunch of intermediate string objects and polluting the string pool was "resolved".</p>
  
  <p>What about Java 9? 
  There'a new feature added as Invokedynamic. And a new class that resolves the problem even better, StringConcatFactory.</p>
  
  <pre><code>String result = "";
  List&lt;String&gt; list = Arrays.asList("a", "b", "c");
  for (String n : list) {
   result+=n;
  }
  </code></pre>
  
  <p>My question are: How many objects are created in this loop? Are there any intermedier objects? And how can i verify that? </p>