Which methods may cause a thread to stop executing?
Cathy Song
Ranch Hand
Joined: Aug 24, 2003
Posts: 270
posted
0
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
posted
0
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
posted
0
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.