Java Programming - The Thread instance life-cycle

Hi, I am puzzled about the Thread instace life-cycle in my code:

publicclass LinkPool{

...

publicvoid initial(int size)

{

while(...)

...

Thread link =new Thread(runnableImp);

link.start();

linkVector.add(runnableImp);

...

}

...

}

when out of the method initial(), who hold the Thread instance reference? If there is no, will the GC terminate the instance?

[859 byte] By [shock_ua] at [2007-11-26 23:09:54]
# 1
The VM holds it. You don't have to hold onto it. It won't be GCed before it's done executing.
jverda at 2007-7-10 14:05:17 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks for your quick answer.
shock_ua at 2007-7-10 14:05:17 > top of Java-index,Java Essentials,Java Programming...