title: Which is memory efficient String or StringBuffer for concatenation in java
body: <p>I have below Scenario where I am confused to choose between String and StringBuffer</p>
  
  <pre><code>final MY_STRING =  VAR1 + "," + VAR2 + "," +VAR3 + ","+..........VAR15;
  </code></pre>
  
  <p>So in this case does <em>each concatenation</em> operation will create a <em>new String object</em> or after <em>all the concatenation operations is completed</em> a <em>Single String object</em> is created and assigned to <em>MY_STRING</em>.</p>
  
  <p>Or is it memory efficient to do the above operation with <em>StringBuffer</em> and convert it to String at last</p>