When thread in Java is removed from memory? [duplicate]
问题 This question already has answers here : Java Thread Garbage collected or not (4 answers) Closed 5 years ago . From the Java API doc: The Java Virtual Machine continues to execute threads until following occurs: All threads that are not daemon threads have died, either by returning from the call to the run method or by throwing an exception that propagates beyond the run method. I hope my assumption is correct that once thread finishes its run() method it becomes eligible for garbage