Multiple choice

Which of the following methods of ThreadGroup class is used to return the number of groups for which the invoking thread is a parent?

  1. activeCount()

  2. destroy()

  3. activeGroupCount()

  4. checkAccess()

  5. getMaxPriority()

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

This method of ThreadGroup class is used to return the number of groups for which the invoking thread is a parent.