Hi everyone.
Considering the exercise that follows:
Question from MasterExam A mock exam.
Assuming that an interrupted exception has NOT been thrown and that "aLiveThread" is a runnable thread, which three guarantee that a thread will leave the running state?
Answers:
wait()
sleep(1000)
aLiveThread.join()
I didn't understand why does the aLiveThread.join() is a correct answer.
Could anyone help me with this?
Thanks