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 |
What is a string what operation can be performed out with the help of a string?
What is synchronization and why is it important in java programming?
Is there any need to import java.lang package?
How to create packages in java?
How would you use Bubble Sort to sort the number of elements?
How to perform Singleton of the java class object on multi JVM?
what is the use of abstract class?
3 Answers Amdocs, Atos Origin, Invictus,
Why is a string immutable?
What are implicit objects in java?
What does sprintf return?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What do you understand by the bean persistent property?