Questions Answers on Multithreading in Java - Multiple Choice Quiz
Questions
6
What is the default priority of a newly created thread?
Answer: Option [B]
Normal priority i.e. 5
7
What will be the result of invoking the wait() method on an object without ensuring that the current thread holds the lock of the object?
Answer: Option [C]
⭐ Make GKSeries Your Preferred Source on Google
Add GKSeries as Preferred Source
8
Which one of the following is a static member of Thread ?
Answer: Option [A]
CurrentThread is static member method. It returns currently running thread.
9
Select the valid thread state transition?
Answer: Option [A]
6 states of a new thread are new, runnable, timed waiting, waiting, blocked, terminated. A thread is run from the ready state when scheduler selects and goes to the running state.
10
What is dead thread in java ?
Answer: Option [B]
A dead or terminated thread has completed its run() method. It can never be restarted.