Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Ques. What are the states of a thread?
Ans. A thread state. A thread can be in one of the following states:
  • NEW
    A thread that has not yet started is in this state.
    A thread executing in the Java virtual machine is in this state.
    A thread that is blocked waiting for a monitor lock is in this state.
    A thread that is waiting indefinitely for another thread to perform a particular action is in this state.
    A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state.
    A thread that has exited is in this state.

A thread can be in only one state at a given point in time. These states are virtual machine states which do not reflect any operating system thread states.

Is it helpful? Yes No

Most helpful rated by users:

©2016 WithoutBook