Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which function of pre defined class Thread is used to check weather current thread being checked is still running?
  2. A.
    isAlive()
    B.
    Join()
    C.
    isRunning()
    D.
    Alive()

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    isAlive() function is defined in class Thread, it is used for implementing multithreading and to check whether the thread called upon is still running or not.


Be The First To Comment