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 |
Is it compulsory to have atleast one abstract method in abstract class?
What is set and get methods in java?
Does java allow overriding static methods ?
In Java, what are public static void main string args?
What is bitwise complement?
What is a function in programming?
What are the types of methods in java?
What is the difference between Static and final?
1) Find the Merge point of two linked lists. 2) Swap two bits of integer. 3) Reverse individual words of the sentence. 4) Reverse string without using temp string.
Is there a way to increase the size of an array after its declaration?
What is meant by event handling in SAX parser?
What is use of super keyword?