Java / Java Multithreading
What is Daemon thread in Java?
Daemon thread in Java are those thread which runs in background and mostly created by JVM for performing background task. A daemon thread is a thread that does not prevent the JVM from exiting when the Java program finishes but the thread is still running. An example for a daemon thread is the garbage collection.
The setDaemon(boolean) method can be used to change the Thread daemon properties before the thread starts.
More Related questions...