1.

What are the different types of Thread Priorities in Java? And what is the default priority of a thread assigned by JVM?

Answer»

There are a total of 3 different types of priority AVAILABLE in JAVA

MIN_PRIORITY: It has an integer value assigned with 1.
MAX_PRIORITY: It has an integer value assigned with 10.
NORM_PRIORITY: It has an integer value assigned with 5.

In Java, THREAD with MAX_PRIORITY gets the first chance to EXECUTE. But the default priority for any thread is NORM_PRIORITY assigned by JVM. 



Discussion

No Comment Found