Suppose i have two threads t1 and t2 are running.How the
main thread will know that the two threads t1,t2 execution
has completed?
Answer Posted / satishkumar vishwakarma
with the help of isAlive() and join() method.
The isAlive returns true when threads are running and
join() will wait till the execution get completed.
| Is This Answer Correct ? | 58 Yes | 1 No |
Post New Answer View All Answers
What are the features of junit?
List two java ide’s?
What does exp mean in math?
What are the 6 functions?
Explain about anonymous inner classes ?
Can we have any code between try and catch blocks?
How is hashcode calculated in java?
Explain about static nested classes in java?
What is class forname?
How do you sort in java?
Is zero a positive integer?
worst case complexities of Quick sort and Merge sort.
What is class and its types?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
Differentiate storage classes on the basis of their scope?