aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Advanced Java
  • Which of the following methods is used in Java to suspend...
Multiple choice

Which of the following methods is used in Java to suspend a thread for a period of time?

  1. isAlive()

  2. run()

  3. sleep()

  4. start()

  5. join()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This method is used in Java to suspend a thread for a period of time.

Keep practicing — related questions

  • Which one of the following is/are not used to suspend the thread temporarily?
  • Which of the following methods of Thread class waits for a thread to terminate?
  • Which of the following methods of the Thread class is used to wait for a thread to complete?
  • Which of the following methods is used in multithreaded programming to determine if a thread is still running?
  • Which of the following statements is false?
  • Which of the below methods in Java is not used with threads
  • Which of the following methods is used in Thread class to resume the execution of a Thread class?
  • Which of the following methods of ThreadClass in Java determines if a thread is still running or not?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy