Which of the following are true?
sleep()
method puts a thread in the ready state. yield()
method puts a thread in the waiting state. suspend()
method is the preferred method for stopping a thread's execution. interrupt()
method results in the throwing of the InterruptedException. D.
sleep()
method puts threads into sleep.
The interrupt()
method results in the throwing of the InterruptedException when an interrupted thread enters the running state.