This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Help for Mock Exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Help for Mock Exam" Watch "Help for Mock Exam" New topic

Help for Mock Exam

Bin Zhao
Ranch Hand

Joined: Oct 04, 2000
Posts: 73
NO.37 in's test
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(), and 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.
the answer is b) and c), why a) is wrong?
Can anyone explain?
Jane Zheng

Joined: Oct 17, 2000
Posts: 11
public final void wait() is defined in Object, not in Thread. And since it is final, no one could override it.
Correct me, if I am wrong.
Jane Z.
Don't get me started about those stupid light bulbs.
subject: Help for Mock Exam
Similar Threads mock exam
synchronized block?
sample question on threads
why this??
Thread wait