Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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



Suppose i have two threads t1 and t2 are running.How the main thread will know that the two threads..

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

Suppose i have two threads t1 and t2 are running.How the main thread will know that the two threads..

Answer / fellow java novice

use join

Is This Answer Correct ?    9 Yes 19 No

Post New Answer

More Core Java Interview Questions

i need income tax program using java inheritance concept. could u please help me?

2 Answers  


difference between byte stream class and character stream class?

0 Answers  


why should we get the following error ? Exception in main method NoClassDefFoundError:classname could anyone give the detail clarification on how java compiler can look for .class file?

2 Answers  


What are predicates in java 8?

0 Answers  


What if I write static public void instead of public static void in java?

0 Answers   Winsol Solutions,






What is another word for methodology?

0 Answers  


What is left shift and right shift?

1 Answers  


i need source code for income tax program using java inheritance

1 Answers  


What is boolean used for?

0 Answers  


What is the differnence between String Buffer and String builder despite having knowledge that String builder is faster than String Buffer and last one is threadsafe.please tell another important difference.

3 Answers   IBM,


What are the different ways of implementing thread? Which one is more advantageous?

0 Answers  


What is regex used for?

0 Answers  






Categories