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

Can we assign null to double in java?

960


What is java lang object?

921


Why do we use variables?

925


Why is singleton instance static?

942


Does treeset use compareto?

909


What is parameters example?

966


Is null or empty java?

925


How do you declare an array in java?

982


what is method reference in java 8?

976


Define inheritance?

962


What is string subsequence method?

1065


Why to use nested classes in java?

1039


Define how destructors are defined in java?

962


Explain about serializable interface in java?

933


What do you mean by a JVM?

1138