Which one of these events will cause a thread to die?
Select the one correct answer.
sleep()
is called.wait()
is called.start()
method ends.run()
method ends.(d)
A thread dies when the execution of the run()
method ends.
The call to the start()
method is asynchronous, i.e., it returns immediately, and it moves the thread to the Ready-to-run state.
Calling the sleep()
or wait()
methods will block the thread.