I have 6 separate java Classes A,B,C,D,E and F.
Class A creates object of Class B and calls a method in Class B.
Class B method creates an object of class C and calls a method in class C.
Class C method creates an objects of D,E,F classes and calls their methods.
when finally control comes back to class A at the end , if I make the object reference of Class B as null, Will this make all the objects of class B,C,D,E,F created so far eligible for garbage collection?