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
What is meant by singleton class?
What is sortedmap in java?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
Can you use this() and super() both in a constructor?
Define how objects are stored in java?
Is ++ operator thread-safe in java?
What is the indent key?
Why is java called java?
What is the final class modifier?
What does flag mean in java?
What is a method vs function?
Explain the purpose of garbage collection in Java?
What do you mean by constant time complexity?
What is the difference between a field variable and a local variable?
Can we overload the constructors?