Select the correct answerWhich function of pre defined class Thread is used to check weather current thread being checked is still running?OptionsisRunning()Join()isAlive()Alive()
Question
Select the correct answerWhich function of pre defined class Thread is used to check weather current thread being checked is still running?OptionsisRunning()Join()isAlive()Alive()
Solution
The correct answer is isAlive(). This function of the predefined Thread class is used to check whether the current thread being checked is still running.
Similar Questions
Select the correct answerWhich of this method is used to find out that a thread is still running or not?Optionsrun()isAlive()checkRun()Alive()
Select the correct answerWhich of these class is used to make a thread?OptionsSystemStringThreadRunnable
Select the correct answerWhich of this method can be used to make the main thread to be executed last among all the threads?Optionsstop()join()call()sleep()
Select the correct answerWhich of these method of Thread class is used to find out the priority given to a thread?OptionsgetPriority()ThreadPriority()get()getThreadPriority()
Select the correct answerWhich of the following will ensure the thread will be in running state?Optionsyield()wait()Thread.killThread()notify()
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.