what is demon thread ?? how it is used ?? can anybody help me ?? is this in scjp2 course??
posted 15 years ago
LOL, demon threads You mean Daemon Threads. These threads provides services for other threads. You can set one by calling setDaemon(true). One important thing to remember is that when all non-daemon threads end, the program exits whether or not there ar daemon threads running.