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
Explain creating threads by extending thread class ?
What exactly is a .class file?
What is java util function?
If try block is successfully executed, Then Is Finally block executed?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
When should I use a singleton?
What are the 8 primitive data types in java?
Is arraylist ordered in java?
What are daemon Threads in java?
What are the 4 types of characters?
How to sort an unsorted array in java?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is the final keyword denotes?
what is method reference in java 8?
What is the purpose of stub and skeleton?