Home » Java ThreadGroup getMaxPriority() method with Examples

Java ThreadGroup getMaxPriority() method with Examples

by Online Tutorials Library

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

Test it Now

Output:

Maximum priority of Parent threadGroup: 10  Maximum priority of Child threadGroup: 10  Thread-1 completed executing  Thread-2 completed executing  

You may also like