explain the life cycle of thread?
Answer Posted / ganesh
There are number of stages for executing the Thread.
1.ready to run
2.run
3.suspend(wait,sleep)
4.resume(notify,notify all)
5.kill.
| Is This Answer Correct ? | 64 Yes | 26 No |
Post New Answer View All Answers
Can substring create new object?
Why we use methods in java?
Explain heap sort?
When should I use stringbuffer?
What is singleton class and how can we make a class singleton?
Explain the differences between static and dynamic variables?
What does nextint () do in java?
Does a function need a return?
Explain the importance of finalize() method.
What is ++ a in java?
What are java packages?
What is a boolean field?
Does treeset allow null in java?
Will the jvm load the package twice at runtime?
How do you escape a string?