Multiple choice

Which of the following methods in ThreadGroup class returns the number of threads in the group plus any group for which this thread is a parent?

  1. activeGroupCount()

  2. activeCount()

  3. destroy()

  4. getMaxPriority()

  5. paint()

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

This method in ThreadGroup class returns the number of threads in the group plus any group for which this thread is a parent.