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
Can we serialize singleton class?
What do you mean by inner class in java? Explain
What is finalize()? Is finalize() similar to a destructor?
What is substring in java?
What is difference in between java class and bean?
What is the difference between dom and sax parser in java?
Who is the owner of java?
When would you use a static class?
how does the run() method in runnable work? : Java thread
What is static synchronization?
What is callable java?
How can you share data between two thread in Java?
how to create constants in java?
why doesn't java run on all platforms?
What is an accessor?