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

which method is used to know the status of the Thread?

Answer Posted / manikandan

isAlive() method is used only to check whether the thread
is running or not.But if you want to know the exact status
of the thread(i.e running,waiting,sleeping etc..) we have
to use getState() method which is been added in jdk 1.5.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8008


Is char * a string?

934


What is numel matlab?

1244


How to split arraylist elements in java?

1098


Write a java program to count the number of words present in a string?

937


Is list thread safe in java?

873


Similarity and difference between static block and static method ?

871


What is the best definition for data?

923


What happens if we don’t define serial version uid?

976


What is a file pointer?

989


What is a bubble sort in java?

898


Can a abstract class be defined without any abstract methods?

934


What is garbage collector?

1009


How is string stored in java?

1005


What is the difference between Array and Hash Table?

981