aresh babu wrote:Thread t = new Thread(); t.start(); t = null; now what will happen to the created thread?
A thread's stack is considered as a root for the GC to check for reachibility. Hence, setting t to null doesn't make the thread object unreachable. The thread object can still be reach via the currentThread() method from the newly started thread.
In other words, nothing will happen to the newly created thread.