Which two CANNOT directly cause a thread to stop executing? (Choose Two)
1. Calling the yield method. 2. Calling the wait method on an object. 3. Calling the notify method on an object. 4. Calling the notifyAll method on an object. 5. Calling the start method on another Thread object.
Answer is 3,4. I can understand 3 and 4, but why not 5?
I guess this is because if the new thread on which start method is called has a higher priority, then the currently executing thread would stop and the new Thread would start executing.
SCJP 1.4 -- 98%<br />SCWCD 5 -- 97%
Enjoy the full beauty of the english language. Embedded in this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss