Creating multiple objects for single instance of class

Code -


class a;
  int b;
endclass

module test();
  initial
   begin
    a a_inst;
    for (int i = 0; i < 10; i++)
     begin
      a_inst = new();
     end
   end
endmodule

Question -
Since the loop executes 10 times, it will create 10 objects. But the same handle is pointing to different instances on each iteration.
What happens to all 9 objects at the end of the loop?

In reply to naveensv:

Actually, a_inst is a class variable, the handle is what gets stored in the variable. (See A Short Class on SystemVerilog Classes - Verification Horizons)

SystemVerilog does not let you know what happens to the other 9 objects—you no longer have handles to access them. The only thing SystemVerilog does is guarantee existence while a class variable holds a handle to an object.