1.

Which of this method is used to find out that a thread is still running or not?(a) run()(b) Alive()(c) isAlive()(d) checkRun()The question was asked in a national level competition.I'd like to ask this question from isAlive(), Join() & Thread Synchronization topic in chapter Multithreading of Java

Answer»

Correct answer is (c) isAlive()

The best explanation: The isAlive( ) method returns true if the THREAD UPON which it is CALLED is still RUNNING. It returns false otherwise.



Discussion

No Comment Found

Related InterviewSolutions