Multiple choice

What kind of thread is the Garbage collector thread is?

  1. Non daemon thread

  2. Daemon thread

  3. Thread with dead state

  4. None of the above

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

The garbage collector in Java runs as a daemon thread. Daemon threads are low-priority background threads that don't prevent JVM from exiting when user threads finish.