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...

If a multi threaded Java program has started numerous number
of threads, at any point in time how to know which thread is
currently executing/running ?

Answer Posted / ankush sharma

We can check the current Thread name as
Thread t= new Thread.currentThread();
System.out.println(t.getName());

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does isempty () do in java?

1064


Define locale.

1040


Can you create an object of an abstract class?

1025


Does windows 10 need java?

1052


Which one will take more memory: an int or integer?

1237


What is the function of log?

1011


Can a lock be acquired on a class in java programming?

991


What is difference between identifier and variable?

1066


Is oracle charging for java?

1037


Differece between class and generic class?

1046


what is collatration?

3290


Why java is platform independent? Explain.

1011


What is Recursion Function?

1207


What are the types of exceptions?

1062


How does callback work in java?

1071