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
How we can declare a static variable?
How to use arraylist in java netbeans?
Write a java program to count the number of words present in a string?
Which method cannot be overridden in java?
Can we override protected method in java?
Can we rethrow the same exception from catch handler?
How many bits is a boolean?
what is the difference between process and thread? : Java thread
Why java applets are more useful for intranets as compared to internet?
What is mvc in java?
What do you mean by an object in java?
Are static members inherited to sub classes?
Is arraylist ordered?
Is alive and join method in java?
What is data and its types?