Select the correct answerWhich of these method of Thread class is used to Suspend a thread for a period of time?Optionssleep()suspend()stop()terminate()
Question
Select the correct answerWhich of these method of Thread class is used to Suspend a thread for a period of time?Optionssleep()suspend()stop()terminate()
Solution
The correct answer is sleep(). This method of the Thread class is used to suspend a thread for a specified period of time.
Similar Questions
Which of these methods of Thread class is used to Suspend a thread for a period of time?Select one:a. suspend()b. sleep()c. terminate()d. stop()
Select the correct answerWhich of these method waits for the thread to terminate?Optionsjoin()isAlive()sleep()stop()
Select the correct answerWhich of this method is used to find out that a thread is still running or not?OptionsisAlive()Alive()run()checkRun()
Select the correct answerWhich of these class is used to make a thread?OptionsSystemStringThreadRunnable
Select the correct answerWhich of the following stops execution of a thread?OptionsCalling wait() method on an objectCalling notify() method on an objectCalling SetPriority() method on a Thread objectCalling read() method on an InputStream object
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.