Multiple choice

How many types of threads are there in Java?

  1. 2

  2. 3

  3. 4

  4. 5

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

Java has two main types of threads: user threads and daemon threads. User threads are created by the application and prevent the JVM from exiting until they complete. Daemon threads run in the background and don't prevent JVM exit - they terminate when all user threads finish. The question asks for 'types' rather than specific thread priorities or states.