Daemon Threads in Java: Definition, Lifecycle, and Examples | CodeTrail