A question about GC
<p>This is  a quesiton taken from a java exam,</p>

<p>How many objects are eligible for gabage collection at #1 ?</p>

<pre><code>public class Main   {

Integer x = 32768;
public static void main(String[] args)
{ 
    Main m = new Main();
    m = null;
    // #1
  } 
}
</code></pre>

<p>I thought it just collect Integer x, does GC even collect the Main object m? </p>
