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?

Answers were Sorted based on User's Feedback



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

Answer / chandrarekha

isAlive() method tells whether the thread is alive or not

Is This Answer Correct ?    13 Yes 1 No

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

Answer / piyush

JDK 1.5 has added the new functionality to know the state of
the Thread as getState();

Is This Answer Correct ?    6 Yes 0 No

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

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

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

Answer / devarathnam c,kotagudibanda(po

Hi... we can use public void isAlive();

Is This Answer Correct ?    4 Yes 1 No

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

Answer / vineela

we can use boolean isAlive()

Is This Answer Correct ?    5 Yes 2 No

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

Answer / praveen carasala

Vijay was joking !!!

The question is about what state the thread is in Running paused ready to run

How to find that?

isAlive just says whether its died or not

Is This Answer Correct ?    1 Yes 0 No

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

Answer / nish

getstate() is used to know the status of Thread..

Is This Answer Correct ?    1 Yes 0 No

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

Answer / suganya from tamilnadu

boolean isAlive()

Is This Answer Correct ?    0 Yes 0 No

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

Answer / vijay

GetThreadState( )

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is Difference between Serializable and Externalizable in Java serialization?

1 Answers   Cognizant, IBM,


What is the difference between serialization and deserialization?

3 Answers   ABC,


What is primitive array?

0 Answers  


What is garbage collection in Java, and how can it be used ?

32 Answers   Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,


When would you use a static class?

0 Answers  


Define immutable object?

0 Answers  


What isan abstract class and when do you use it?

1 Answers   Genpact,


what r advatages of websphere? & how to deploy?

0 Answers   Saksoft,


What is method Overloading in the perspective of OOPS?

6 Answers  


What is the difference between C++ and Java and your preferences?

0 Answers   Expedia,


What are identifiers in java?

0 Answers  


what is nested class in java?

0 Answers   IBS,


Categories