Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is a string what operation can be performed out with the help of a string?

0 Answers  


What is synchronization and why is it important in java programming?

0 Answers  


Is there any need to import java.lang package?

13 Answers   Sun Microsystems,


How to create packages in java?

0 Answers  


How would you use Bubble Sort to sort the number of elements?

0 Answers   Genpact,


How to perform Singleton of the java class object on multi JVM?

2 Answers  


what is the use of abstract class?

3 Answers   Amdocs, Atos Origin, Invictus,


Why is a string immutable?

0 Answers  


What are implicit objects in java?

0 Answers  


What does sprintf return?

0 Answers  


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

0 Answers  


What do you understand by the bean persistent property?

0 Answers  


Categories