the user thread can change to daemon thread. you can use the method setDaemon(ture) to change it.
if the user thread exit,eg main Thread. the JVM will tell the daemon thread to die and exit JVM.
if the main Thread exit, but the other user thread still running ,the JVM do not exit util the other user thread exit.
if the user thread exit,eg main Thread. the JVM will tell the daemon thread to die and exit JVM.
if the main Thread exit, but the other user thread still running ,the JVM do not exit util the other user thread exit.