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


Please Help Members By Posting Answers For Below Questions

What is multiple inheritance? Is it supported by java?

530


What is string immutability?

543


Is Constructor possible in abstract class in java ?

596


I want to store more than 10 objects in a remote server? Which methodology will follow?

2638


What is the difference between Error, defect,fault, failure and mistake?

666






Is there a jre for java 11?

560


How many types of equations are there?

546


Why can we not override static method?

599


Can a class be private in java?

553


Explain scope or life time of local variables in java?

563


What about main() method in java ?

570


List some java keywords sun like c, c + + keywords?

592


What is a lambda expression ? What's its use ?

568


What is meant by stack and queue?

608


Why does java have two ways to create child threads? Which way is better?

549