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

Can we initialize the final blank variable?

583


When should I use singleton pattern?

545


Is 64bit faster than 32 bit?

579


What is purpose of applet programming?

640


What will happen if a thrown exception is not handled?

563






What are design patterns and please explain?

573


What is java oops?

558


How do you remove an object from an arraylist in java?

467


What is void class in java?

528


Can we compare two strings in java?

556


Is string passed by reference in java?

548


What is the use of static class?

546


What is immutable data?

584


What is public static?

497


what is thread in Java ?

628