Multiple choice

Which of the following methods in Thread class, checks that the thread is a daemon thread?

  1. join()

  2. isDaemon()

  3. activeCount()

  4. sleep()

  5. start()

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

This method checks that the thread is a daemon thread, or not.