which method is used to know the status of the Thread?

Answers were Sorted based on User's Feedback



which method is used to know the status of the Thread?..

Answer / chandrarekha

isAlive() method tells whether the thread is alive or not

Is This Answer Correct ?    13 Yes 1 No

which method is used to know the status of the Thread?..

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

which method is used to know the status of the Thread?..

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

which method is used to know the status of the Thread?..

Answer / devarathnam c,kotagudibanda(po

Hi... we can use public void isAlive();

Is This Answer Correct ?    4 Yes 1 No

which method is used to know the status of the Thread?..

Answer / vineela

we can use boolean isAlive()

Is This Answer Correct ?    5 Yes 2 No

which method is used to know the status of the Thread?..

Answer / praveen carasala

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

which method is used to know the status of the Thread?..

Answer / nish

getstate() is used to know the status of Thread..

Is This Answer Correct ?    1 Yes 0 No

which method is used to know the status of the Thread?..

Answer / suganya from tamilnadu

boolean isAlive()

Is This Answer Correct ?    0 Yes 0 No

which method is used to know the status of the Thread?..

Answer / vijay

GetThreadState( )

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

how to connect two diffrent applet files

0 Answers  


Can we have return statement in finally clause? What will happen?

0 Answers  


What do you understand by private, protected and public?

0 Answers  


What does system out println () do?

0 Answers  


Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1

7 Answers   Huawei, IBM,






Difference between ‘>>’ and ‘>>>’ operators in java?

0 Answers  


what is Abstract DataType?

1 Answers  


how can you take care of mutual exclusion using java threads? : Java thread

0 Answers  


How to disable caching on back button of the browser?

0 Answers  


Explain the protected field modifier?

0 Answers  


Can we instantiate interface in java?

0 Answers  


Linked List reverese program

2 Answers   Bally Technologies,


Categories