title: Difference between concatenating strings and using StringBuffer append
body: <p>The static content has been hard coded in Java files like this:</p>
  
  <pre><code>String s = "&lt;span class=\"className\"&gt;StaticContent&lt;/span&gt;";
  </code></pre>
  
  <p>It has to be externalized using ResourceBundle objects.</p>
  
  <p>A simple method of doing it is:</p>
  
  <pre><code>String s = "&lt;span class=\"className\"&gt;" + 
             ResourceBundleObject.getString("StaticContent.key") + "&lt;/span&gt;";
  </code></pre>
  
  <p>The second method is using StringBuilder object:</p>
  
  <pre><code>StringBuilder sb = new StringBuilder();
  sb.append("&lt;span class=\"className\"&gt;");
  sb.append(ResourceBundleObject.getString("StaticContent.key"));
  sb.append("&lt;/span&gt;");
  String s = sb.toString();
  </code></pre>
  
  <p>Does second method have advantage over the first one (in terms of resources consumed)?</p>
  
  <p>It's easier to use first method as it involves very less editing.</p>