87
Java ThreadGroup getMaxPriority() method
The getMaxPriority() method of ThreadGroup class returns the maximum priority of the thread group.
Syntax:
Return:
This method returns the maximum priority that a thread in the thread group can have
Example
Output:
Maximum priority of Parent threadGroup: 10 Maximum priority of Child threadGroup: 10 Thread-1 completed executing Thread-2 completed executing
Next TopicThreadGroup in Java