Hye
Does the GC clear memory of running threads with no reference to them ?
Consider the following code:
Thread t = new Thread()...
t.start();
t = null;
.
.
.
Suppose 't' runs forever, and the rest of the program runs forever - will the GC clean 't' from the memory (stop it in the middle of the running) ? It's running but it has no reference to it.
Please if you have link to an official page from SUN/Oracle that support the answer, write it here, because I searched and did not find an official answer to it.
Thanks