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
Can we execute java program without main method?
Explain spliterator in java8?
What is locale?
Why there is no call by reference in java?
Why vector is used in java?
Why 1 is not a prime number?
Write a program to find the whether a number is an Armstrong number or not?
What is get () in java?
What does the “static” keyword mean?
What occurs when an object is constructed?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
What is an eror in java?
What is a line break?
What is the format specifier?
What are the special characters?