which method is used to know the status of the Thread?
Answers were Sorted based on User's Feedback
Answer / chandrarekha
isAlive() method tells whether the thread is alive or not
Is This Answer Correct ? | 13 Yes | 1 No |
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 |
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 |
Answer / devarathnam c,kotagudibanda(po
Hi... we can use public void isAlive();
Is This Answer Correct ? | 4 Yes | 1 No |
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 |
What is the access scope of protected access specifier?
class test { private static void main(String []adsf) { } } explain me that the above code is error or exception
is memory to the abstract class allocated ..or objects not instantiated
What is the difference between import java.util.date and java .util?
What is the importance of finally block in exception handling?
What does java se mean?
What is polymorphism java example?
How will you invoke any external process in java?
Is java platform independent?
What does java ide mean?
How many bytes are there?
Can you run java program without main method?