• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which methods may cause a thread to stop executing?

 
Cathy Song
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deprecated methods will not appear in the exam.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic