Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these method is used to find out that a thread is still running or not?
  2. A.
    run()
    B.
    Alive()
    C.
    isAlive()
    D.
    checkRun()

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The isAlive( ) method returns true if the thread upon which it is called is still running. It returns false otherwise.


Be The First To Comment