GeeCON Prague 2014*
The moose likes Mock Exam Errata and the fly likes for help, javaprepare.com question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "for help, javaprepare.com question" Watch "for help, javaprepare.com question" New topic
Author

for help, javaprepare.com question

Andrew zou
Greenhorn

Joined: May 31, 2001
Posts: 6
this question confuse me , pls help me.
37.Which of the following statements are true, Select all correct answers.
A. The wait method defined in the Thread class, can be used to convert a thread from Running state to Waiting state.
B. The wait(), notify(), notifyAll() methods must be executed in synchronized code.
C. The notify() and notifyAll() methods can be used to signal and move waiting threads to ready-to-run state.
D. The Thread class is an abstract class.
i choose A,B. But the answer is B,C. who can give me the explainn why A is wrong and C is correct.
i have studied SCJP material for half one month. i will join the real exam in eight days. i have done five mock exams.
i found the Jxam software is quite difficult, more than that three mock exams designed by Marcus Green.
i want to know if the real exam is more difficult than Marcus Green's question.
who can solve my doubt? thanks a lot.
Jyotsna Umesh
Ranch Hand

Joined: May 09, 2001
Posts: 94
Hi Andrew,
In my opinion A, B and C options are right. I see no reason for A to be wrong, if someone can explain us its well and good.
C option is very much correct as notify() and notifyall() methods very much bring threads from waiting state to ready to run state, then they are called by scheduler.
I have heard that actual exam's toughness level is somehow very close to Marcus Mock Test and definitely its not tougher than the real exam.
All the best for the exam
Jyotsna
Thiru Narayanan
Greenhorn

Joined: Apr 30, 2001
Posts: 23
The answer A is surely wrong. Because the wait method is not defined in the Thread Class but in "OBJECT" class.
THIRU
 
GeeCON Prague 2014
 
subject: for help, javaprepare.com question