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 final class ?

0 Answers  


Explain the private protected method modifier?

0 Answers  


What are alternatives to java serialization?

0 Answers  


Why synchronization is important in java?

0 Answers  


Can an unreachable object become reachable again?

3 Answers  


Will the jvm load the package twice at runtime?

0 Answers  


Why is the main method declared static?

0 Answers  


Explain reverse a linked list recursive java solution?

0 Answers  


Can i have abstract class with no abstract methods?

22 Answers   CTS,


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

0 Answers  


What is the meaning of 3 dots in java?

0 Answers  


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

0 Answers  


Categories