Multiple choice

Which of the following thread group methods returns the number of threads in a group, along with the group, for which this thread is a parent?

  1. int activeGroupCount()

  2. final void destroy()

  3. final int getMaxPriority()

  4. int activeCount()

  5. none of these

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

This method returns the number of threads in the group, along with a group, for which this thread is a parent.