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 finalmethod & final variable with example?

6 Answers   HP,


Can we override private methods?

0 Answers  


How to perform linear search in java?

0 Answers  


What is continuity of a function?

0 Answers  


What's the access scope of protected access specifier?

0 Answers  


What are the two parts of a conditional statement?

0 Answers  


What is immutability in java?

0 Answers  


How do you create a first line indent?

0 Answers  


What is blank final variable?

0 Answers  


What is a class ?

8 Answers  


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

0 Answers  


Why should we use singleton pattern instead of static class?

0 Answers  


Categories