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
What is method in java ?
What is == and === in javascript?
Does java initialize arrays to zero?
Can variables be used in java without initialization?
Define inheritance with reference to java.
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What is math exp in java?
Can array grow dynamically in java?
Is string an object?
Can we execute a program without main?
Can a class be final?
What is dynamic array in java?
What is a linkedhashmap java?
What is a nested class?
What are the basic control structures?