Multiple choice

The maximum priority of a thread is _____.

  1. 1

  2. 5

  3. 10

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Java, threads have priorities ranging from 1 (MIN_PRIORITY) to 10 (MAX_PRIORITY), with 5 being the default (NORM_PRIORITY). The maximum priority value is therefore 10, which can be assigned using thread.setPriority(Thread.MAX_PRIORITY).