Tag Archives: Nondaemon
There are two kinds of thread in Java, which are daemon and nondaemon threads. Deamon threads; primarly are used to carry out lightweight background tasks, like garbage collector
or the hidden system threads. On the other hand, user threads are mainly non-deamon threads but a thread can be indicated as a daemon thread by calling the Thread.setDaemon() method.