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


Please Help Members By Posting Answers For Below Questions

Explain creating threads by extending thread class ?

759


What exactly is a .class file?

801


What is java util function?

715


If try block is successfully executed, Then Is Finally block executed?

824


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

737


When should I use a singleton?

763


What are the 8 primitive data types in java?

756


Is arraylist ordered in java?

765


What are daemon Threads in java?

855


What are the 4 types of characters?

754


How to sort an unsorted array in java?

851


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

750


What is the final keyword denotes?

857


what is method reference in java 8?

759


What is the purpose of stub and skeleton?

744