Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA