title: how to compare Stringbuffer object and String object
body: <p>how to compare sb and s</p>
  
  <pre><code>StringBuffer sb= new StringBuffer("Hello");
  String s= "Hello";
  </code></pre>
  
  <p><code>s.equals(sb.toString())</code> is giving result as <strong>false</strong>.</p>