Question: what is the difference between daemon thread and user thread?
Answer: The main difference between a user thread and a daemon thread is that your Java program will not finish execution until one of the user thread is live. ... On the other hand, a daemon thread doesn't get that preference, JVM will exit and close the Java program even if there is a daemon thread running in the background.