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