Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can we execute java program without main method?

1112


Explain spliterator in java8?

1055


What is locale?

1041


Why there is no call by reference in java?

929


Why vector is used in java?

1029


Why 1 is not a prime number?

1027


Write a program to find the whether a number is an Armstrong number or not?

1034


What is get () in java?

1057


What does the “static” keyword mean?

1108


What occurs when an object is constructed?

1008


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).

2732


What is an eror in java?

1056


What is a line break?

1033


What is the format specifier?

942


What are the special characters?

972