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
Can we initialize the final blank variable?
When should I use singleton pattern?
Is 64bit faster than 32 bit?
What is purpose of applet programming?
What will happen if a thrown exception is not handled?
What are design patterns and please explain?
What is java oops?
How do you remove an object from an arraylist in java?
What is void class in java?
Can we compare two strings in java?
Is string passed by reference in java?
What is the use of static class?
What is immutable data?
What is public static?
what is thread in Java ?