Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these method is used to explicitly set the priority of a thread?
  2. A.
    set()
    B.
    make()
    C.
    setPriority()
    D.
    makePriority()

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    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().


Be The First To Comment