In Java:
I have an object that holds references to 2 daemon threads. I am considering the corner case where it is not deinitialized, so I can determine whether I need a finalizer. The function for detinitializing stops the threads. I could go ahead and just add a finalizer but I am curious:
a) Can the object get garbage collected while the above threads are alive?
b) If it can get garbage collected, will the threads get interrupted?