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 translator and it types

1 Answers  


What is a concrete classes? Is Java object class is concrete class?

0 Answers   Infosys,


What are the different types of garbage collectors in java?

0 Answers  


Does unicode support all languages?

0 Answers  


When finally clause is executed?

3 Answers  


What are wrapper classes in java?

0 Answers  


How many types of threads are there in java?

0 Answers  


What is the base class for error and exception?

0 Answers  


Java run-time system generates What class of exceptions?

2 Answers   TCS,


What does system.gc() and runtime.gc() methods do?

0 Answers  


What is character in data type?

0 Answers  


What is java instanceof operator?

0 Answers  


Categories