This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
What wight cause the current thread to stop excutings? A.thread of higher priority become ready (yield-methode). B.method sleep() be called. C.method stop() be called D.method suspend() be called. E.method wait() be called I think the answers are A, B, C, D, E. Does a call to the wait method stop a thread? Thanks for your answers. Thomas.
Assuming "stop" in this question does not mean that the thread cannot resume at a later time, then all options are correct, in my opinion. If "stop" in this question means a final halt of the thread's execution, then only the (deprecated) method stop() will do it. wait() is a method of Object.