What is the life cycle of Thread ?
Answer Posted / harmeet
1.create the thread on which object u want, using Thread
interface,
2.then use obj.start() to invoke the thread
3.this method will intern call run() of Thread class
4.once it's serviced, it will come to dead state.
| Is This Answer Correct ? | 18 Yes | 16 No |
Post New Answer View All Answers
Why do we need data serialization?
What is the size of a string in java?
Difference between process and thread?
Is 0 an even number?
What is the difference between abstract class and interface1? What is an interface?
What does indexof mean?
Why do we need singleton?
What does jenkins do?
Why java is not 100% object-oriented?
What is meant by local variable and instance variable?
What is assembly language?
Why is stringbuffer called mutable?
What are the advantages of java over cpp?
How to create a thread in java?
What is compareto?