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 translator and it types
What is a concrete classes? Is Java object class is concrete class?
What are the different types of garbage collectors in java?
Does unicode support all languages?
When finally clause is executed?
What are wrapper classes in java?
How many types of threads are there in java?
What is the base class for error and exception?
Java run-time system generates What class of exceptions?
What does system.gc() and runtime.gc() methods do?
What is character in data type?
What is java instanceof operator?