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
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
Is char * a string?
What is numel matlab?
How to split arraylist elements in java?
Write a java program to count the number of words present in a string?
Is list thread safe in java?
Similarity and difference between static block and static method ?
What is the best definition for data?
What happens if we don’t define serial version uid?
What is a file pointer?
What is a bubble sort in java?
Can a abstract class be defined without any abstract methods?
What is garbage collector?
How is string stored in java?
What is the difference between Array and Hash Table?