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 / adminraj

Check executing/running current thread by

currentThread() [Method]

public static Thread currentThread()

Find the currently executing thread.

Returns:

the currently executing thread

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is set and get methods in java?

1040


Does set allows null in java?

1015


Can we increase size of array?

1069


What are different types of classloaders?

1073


Explain spliterator in java8?

1097


Why string is not thread safe?

1044


What is super?

1248


What is the flag in java?

1106


Why stringbuilder is not thread safe in java?

1062


Variable of the boolean type is automatically initialized as?

1049


How will you invoke any external process in java?

1154


What is a default method?

1110


What is gc()?

1133


Is there a case when finally will not execute?

1052


Are arrays dynamic in java?

1084