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
Can we execute a program without main?
What do you mean by flow of struts?
What is java’s garbage collected heap?
What is stringwriter?
What is use of static method?
What is string [] args?
What is singleton service?
Explain abstract class in java?
What is the r character?
What is the use of a conditional inclusion statement in Java ?
In how many ways we can do exception handling in java?
What state is a thread in when it is executing?
What is a classloader in java?
What is a method type?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread