Sail E0 Webinar
Question
Which of these method is used to explicitly set the priority of a thread?
Options:
A .  set()
B .  make()
C .  setPriority()
D .  makePriority()
Answer: Option C


The default value of priority given to a thread is 5 but we can explicitly change that value between the permitted values 1 & 10, this is done by using the method setPriority().



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers