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 the purpose of the file class in java programming?
How do you get the length of a string in java?
How are java objects passed to a method and what are native methods?
Can we override static methods in java?
Are true and false keywords?
what do you mean by stream pipelining in java 8? Explain
What are the differences between this and super keyword?
How do you remove duplicates from an array in java?
How big is a gigabyte?
Can we override the static methods?
How to sort an array in java without using sort method?
How do you do absolute value in java?
What was java originally called?
How to find the index of the largest number in an arraylist java?
When do we need to use internal iteration? When do we need to use external iteration?