explain the life cycle of thread?
Answer Posted / srinivas
There are number of stages for executing the Thread.
1.born state
2.runnable
3.running(wait,sleep)
4.blocked(wait,sleep)
5.destroy.
| Is This Answer Correct ? | 45 Yes | 22 No |
Post New Answer View All Answers
Discuss different types of errors that generally occur while programming.
What is an inner class in java?
What are the benefits of operations in java?
When should the method invokelater() be used?
How can you traverse a linked list in java?
Can a java program have 2 main methods?
Is null or empty java?
Realized?
What are alternatives to java serialization?
What is the difference between a factory and abstract factory pattern?
How can we make sure main() is the last thread to finish in java program?
Explain access modifiers in java.
do I need to use synchronized on setvalue(int)? : Java thread
Is java hard to learn?
When we should use serialization?