Answer Posted / guru
When an object is created using Thread class,it is in the
new state, when the start method is called the object goes
into the runnable state from where the scheduler picks up
and starts executing. If that process requires any resource
it is picked and put to the blocked state and when the
process finished that thread is in dead state.
states:
1 new
2 runnable
3 running
4 blocked
5 dead
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
What does opcode mean?
Which software is used for java programming?
What is the purpose of file class?
Is main a function?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What is a double?
Where is the singleton class used?
can java object be locked down for exclusive use by a given thread? : Java thread
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What does a boolean method return?
Can we override static methods in java?
What is google full form?
What is difference between equal and == in java?
What is return in java?
Explain the use of shift operator in java. Can you give some examples?