Multiple choice

Which of the following methods of Thread class is used to obtain the priority of a thread?

  1. run

  2. getName

  3. getPriority

  4. sleep

  5. start

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

This method of Thread class is used to obtain the priority of a thread.