Daemon Thread in Java
Daemon thread in Java is a thread that runs in background to perform some tasks for the program as long as the program is running. Even if daemon threads are running that doesn’t prevent JVM from shutting down. Features of daemon thread in Java 1. The Java Virtual Machine exits…