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 is reflexive association?
Which variables are stored in heap?
What is connection class in java?
Can a class have a static inner class?
What is the output of the below java program?
What will be the output of round(3.7) and ceil(3.7)?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
What is balanced tree in java?
Can java inner class be static?
What is keyword in oop?
What is the difference between error and an exception?
What is a class object?
Are constructors methods?
How do you input a string in java?
Explain throw keyword in java?