
what is need of daemon thread?

Daemon threads are the service providers for other threads running in the same process.They can run without user intervention. The JVM can exit when there are daemon thread by killing them abruptly.Any thread can be a daemon thread.
For more information, visit the following link: