File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Which methods may cause a thread to stop executing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Which methods may cause a thread to stop executing?" Watch "Which methods may cause a thread to stop executing?" New topic
Author

Which methods may cause a thread to stop executing?

Cathy Song
Ranch Hand

Joined: Aug 24, 2003
Posts: 270

4.Which methods may cause a thread to stop executing?
a. sleep();
b. stop();
c. yield();
d. wait();
e. notify();

I think a,c,d are the only correct answers. I did not include b since stop() is depcrecated. How should I deal with such questions?
Thanks.
[ October 30, 2003: Message edited by: Cathy Song ]
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Deprecated methods will not appear in the exam.


SCJP2. Please Indent your code using UBB Code
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I read such question this week and the source of that question come
from an old mock, sometimes we have to be carefully with this mocks, because some methods dont compile.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which methods may cause a thread to stop executing?