File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

for help, javaprepare.com question

 
Andrew zou
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer A is surely wrong. Because the wait method is not defined in the Thread Class but in "OBJECT" class.
THIRU
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic