Which of the following is true regarding sleep() and wait() in threaded environments?
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
More Java MCQ Questions