title: How many objects will be eligible for garbage collection after executing "m1=null; m2=null;"?
body: <p>I am confused to understand after executing <code>m1 = null;</code> <code>m2 = null;</code>. How many objects will be eligible for garbage collection?</p>
  
  <pre><code>public class MyTest {
      MyTest m;
  
      void show() {
          System.out.println("Hello this is show method.");
      }
  
      public static void main(String args[]) {
          MyTest m1 = new MyTest();
          MyTest m2 = new MyTest();
          MyTest m3 = new MyTest();
          m1.m = m2;
          m2.m = m3;
          m3.m = m1;
          m1 = null;
          m2 = null;
          // Question here: How many objects will be eligible for garbage collection?
      }
  }
  </code></pre>