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
What is the importance of finally block in exception handling?
Is string is a class in java?
What is jdbc api?
What are the important methods of java exception class?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
Can we return null in java?
Can we override static methods in java?
What is the symbol for line break?
What is the meaning of variables in research?
What is t in generics in java?
What language is java written?
What is thread life cycle?
What is the equal sign?
What is meant by anonymous class?
Can we have return statement in finally clause? What will happen?