Question: what is the difference between user thread and daemon thread in java?
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.