Multiple choice technology web 2.0

What are Daemon thread?

  1. It is a normal thread then will run in the foreground

  2. It is a main thread

  3. Daemon thread will run in background and stop automatically when no operation

  4. There is no such thread

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A daemon thread runs in the background to perform tasks like garbage collection and does not prevent the JVM or runtime from exiting when all user threads finish.