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 the buffer limit?
When super keyword is used?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What is factor r?
How big is a pointer?
what is session in java?
What’s the difference between unit, integration and functional testing?
What is tree node in java?
Write a program in java to find the maximum and minimum value node from a circular linked list.
How do I get a substring?
What is package protected in java?
Is an array a vector?
What is a dot notation?
What is the use of singleton?
What are 3 boolean operators?