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 |
Difference between collection, collection and collections in java?
Explain the features of java?
What is the final blank variable?
Can you explain the usages of class.forname()?
Explain the importance of join() method in thread class?
Explain the importance of finalize() method.
What is the size of an array?
Can a class have multiple constructors?
what are the analysis of an object
When should we create our own custom exception classes?
Why bytecode is called bytecode?
Is java an open source?