Explain thread life cycle in java?



Explain thread life cycle in java?..

Answer / Vikas Saini

The life cycle of a Java thread consists of six states: New, Runnable, Running, Blocked, Terminated, and Dead. A newly created thread starts in the 'New' state, then transitions to the 'Runnable' state when it is added to the pool of threads that are ready to be executed by the JVM. Once started, a thread enters the 'Running' state until it finishes or blocks. Upon completion, it moves to the 'Terminated' state and eventually becomes 'Dead'. A dead thread cannot be restarted.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is "Java Native Interface" and how to use it?

1 Answers   IBM,


Can we override private method in java?

1 Answers  


Can Exception handling we can handle multiple catch blocks?

1 Answers   PUCIT,


How do you do math powers in java?

1 Answers  


Can a Byte object be cast to a double value?

3 Answers   KO,


what is session facade ?

3 Answers  


What is regex used for?

1 Answers  


What is a function easy definition?

1 Answers  


Does java have a compiler?

1 Answers  


what is the use of private constructor in core java?

3 Answers   OnMobile, Satyam, Yash Technologies,


How many tetrahedral voids are there in bcc?

1 Answers  


Which method will get invoked first in a stand alone application?

1 Answers  


Categories