Hi all,
This is discussed previously,but I am confused with the choice c.
what's answer for the following question?
ThreadGroup class instances:
a) Allow threads to be manipulated as a group
b) Provide support for ThreadDeath listeners
c) May contain other ThreadGroups
d) Must contain threads of the same type
the explanations says
c) May contain other ThreadGroups
Nope.
Thread group is the highest level of aggregation of individual threads. Java doesn't support ( as far as I know ) groups of groups.
But I extracted from de API documentation:
A thread group represents a set of threads. In addition, a thread group can also include other thread groups. I feel both statements are contradicting.
Is the answer yes or no