Assume that th is an instance holding a
thread object. th.start() causes the thread to start running and eventually complete its execution. The object reference by th is not accessable any more and is garbage collected when the garbage collecter runs.
1. True
2. False
Ans: 2
Doubt: WHY? in this case there is no use of a dead thread and as mentioned "The object reference by th is not accessable any more", so why it will not be garbage collected?
pls help
regards,
gitesh