MCQs > IT & Programming > Java > Which is true regarding sleep() and wait() in threaded environments?

Java MCQs

Which of the following is true regarding sleep() and wait() in threaded environments?

Answer

Correct Answer: The sleep() method will wait for a specific time (in milliseconds) and continue execution afterwards, while wait() will wait for another thread’s notify() method before it will execute.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it