Java ThreadGroup getMaxPriority() method
The getMaxPriority() method of ThreadGroup class returns the maximum priority of the thread group.
This method returns the maximum priority that a thread in the thread group can have
ExampleTest it Now
Maximum priority of Parent threadGroup: 10 Maximum priority of Child threadGroup: 10 Thread-1 completed executing Thread-2 completed executing