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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Why do I need to declare the type of a variable in java?
How many bits is size_t?
What are green threads in java?
What is logical variable?
What is the point of polymorphism java?
Can java arraylist hold different types?
what is the JNDI?
What is an object in Java and what are its benefits?
What is the difference between applet and application?
What are default methods ?
What is the generic function?
How variables are declared?