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
Difference between operator overloading and function overloading
What are generic methods?
Is ++ operator is thread safe in java?
What an i/o filter in java programming?
What is a parameter in simple terms?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is the purpose of assert keyword used in jdk1.4.x?
What is data and its types?
What is thread count in java?
How do you control extraneous variables?
What is the hashcode () and equals () used for?
What are the 6 boolean operators?
What is a condition in java?
What is singleton service?
What is the use of static class?