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

Difference between operator overloading and function overloading

1124


What are generic methods?

1039


Is ++ operator is thread safe in java?

1004


What an i/o filter in java programming?

1170


What is a parameter in simple terms?

1071


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

1094


What is the purpose of assert keyword used in jdk1.4.x?

1125


What is data and its types?

1050


What is thread count in java?

1053


How do you control extraneous variables?

969


What is the hashcode () and equals () used for?

1124


What are the 6 boolean operators?

1178


What is a condition in java?

1091


What is singleton service?

1022


What is the use of static class?

1277