This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes sample question on threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "sample question on threads" Watch "sample question on threads" New topic

sample question on threads

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4351

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 "correct" answers are B and C
I do not understand answer B.
You do not have to call these methods.

Visit my download page
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4351

oh i think i figured it out. he meant that is the only place they can be executed.
Have you checked out Aspose?
subject: sample question on threads
jQuery in Action, 3rd edition