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 |
Write a program to find the whether a number is an Armstrong number or not?
Explain throw keyword in java?
what is the use of declaring constructor as private?
5 Answers Cyient, IVY Technologies, Sai Softech, Virtusa,
What is defined as false sharing in the context of multithreading?
What is an immutable object?
What is the purpose class.forname method?
What is the use of static import ?
Can you override static methods?
Why can't we override private static methods?
what are the boundaries of jdk and jre?
program to find 25 square = 625 here the 625 of last two digits is equal to 25, i don't know excatly what this type of number is called
is it possible to add a object in a HASHMAP