What happens to a thread once it hits the ends? Does it kill itself? or does it float around in memory taking up space? what exactly happens?
new Thread(new Runnable() {
public void run() {
//do some stuff
...
//ok... did some stuff, now what?
}
}).start();
It finishes and all it’s ThreadLocal objects become eligible for Garbage collection.