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
Explain about join() method?
Why main function is static?
Does list allow duplicates in java?
How many types of gc are there in java?
What is anagram in java?
Which is easier .net or java?
Differentiate between a class and an object.
Can we declare a class as abstract without having any abstract method?
What does next mean in java?
Write an algorithm for quick sort?
What is structure of java heap? What is perm gen space in heap?
What is the super void?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
Can we have any code between try and catch blocks?
What is ternary operator in java?