• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

for help, javaprepare.com question

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic