Which of the following may pause/stop the current
thread?
Options
Select 4 correct options.
1.calling Thread.yield()
2.calling stop() on an object of class Thread.
3.calling someObject.wait()
4.calling someObj.notify()
5.calling waitForAll() on MediaTracker Object.
Answer given: options 1,2,3,5
The stop() method is deprecated in
java 1.4. Then how JDiscuss Test3 is saying this option is correct. and there is also no method called
waitForAll().
Please comment