How can the priority of a thread be set?
Select the one correct answer.
setPriority()
method in the Thread class.(a)
The priority of a thread is set by calling the setPriority()
method in the Thread class.
No Thread constructor accepts a priority level as an argument.