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 not thread safe?
What is computer compiler?
How to create a thread in java?
What is a ternary operator in java? What is an interface?
What is structure of java heap? What is perm gen space in heap?
How to call one constructor from the other constructor ?
What is hash code collision?
Can arraylist contain null values?
What is the difference between error and an exception?
Does java support Operator Overloading?
Can you explain the cs option of java interpreter?
How many types of equations are there?
What means public static?
Define jit compiler?
Differentiate between static and non-static methods in java.