null.
, , - Thread. :
System.out.println(Thread.currentThread());
What do you expect from this if the object Threadwas garbage collected?
Objects are just garbage collected at some point after there are no live links to them. Any live stream has a link to itself.
Honestly, it would be painful if you were sure that you saved the link you just started to prevent its sudden termination.
source
share