Which methods may cause a
thread to stop executing?
1 sleep();
2 stop();
3 yield();
4 wait();
5 notify();
6 notifyAll()
7 synchronized()
Select all correct answers.
the correct answers are 1,2,3,4.
but in khalid it is given clearly as "calls to methods suspend(), sleep() and wait() do not stop a thread..they only cause the thread to move out of its running state. a thread will stop only when it is done executing the run method"
which one is right...please answer me
gayathri