title: How to make sure String objects are garbage collected in Java
body: <p>Here is the code snippet.</p>
  
  <pre><code>method(){
      String s1="abc";
      String s2 = new String ("abc");
      s1=null;
      s2=null;
      --------
      ---------
       }
  </code></pre>
  
  <p>At the end is <code>s1 &amp; s2</code> objects are exists? How you will make sure these objects are garbage collected ?</p>