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


Please Help Members By Posting Answers For Below Questions

What is meant by singleton class?

593


What is sortedmap in java?

546


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

500


Can you use this() and super() both in a constructor?

520


Define how objects are stored in java?

557






Is ++ operator thread-safe in java?

624


What is the indent key?

583


Why is java called java?

537


What is the final class modifier?

551


What does flag mean in java?

535


What is a method vs function?

545


Explain the purpose of garbage collection in Java?

565


What do you mean by constant time complexity?

594


What is the difference between a field variable and a local variable?

564


Can we overload the constructors?

554