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 have try block without catch block?

997


What is purpose of keyword void?

995


What is proper subset?

929


Can you create an object of an abstract class?

963


What do heavy weight components mean in java programming?

911


Why do I need to declare the type of a variable in java?

1013


What is the purpose of static keyword in java?

917


Why java is considered dynamic?

1123


How do you use find and replace?

918


What kind of variables can a class consist?

1011


What is tree node in java?

931


Why does java does not support multiple inheritance? Explain

939


What are the Main functions of Java?

1064


Can a class have more than one object?

952


What is constructor chaining in java?

1032