title: When does StringBuffer adds strings to the String Pool?
body: <p>When I define a <code>StringBuffer</code> variable with <code>new</code>, this string is not added to the String pool, right?</p>
  
  <p>Now, when I define another <code>StringBuffer</code> but not with <code>new</code>, I define it as <code>StrPrev.append("XXX")</code> suddenly it is.(or so says my college teacher). Why is that? What makes this string to suddenly become a string-pool string?</p>