Yes - in the first approach, the Thread object will have the right to garbage collection as soon as the main thread is completed.
In the second approach, if the Bar instance is still not suitable for garbage collection, this will prevent the collection of the Thread object. I doubt that this will affect the main OS thread, mind you.
I would not have thought about the implications of GC, although I would have focused on readability. For some reason, do you need a link to this background thread? If so, move on to the second approach so that it is available to you. If you do not need it, it would be pointless to have it as a field.
source share