aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes javaprepare.com mock exam Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "javaprepare.com mock exam" Watch "javaprepare.com mock exam" New topic
Author

javaprepare.com mock exam

Ramya Iyer
Ranch Hand

Joined: Jul 29, 2003
Posts: 66
Which of the following statements are true. Select the two correct answers.
1. The wait method defined in the Thread class, can be used to convert a thread from Running state to Waiting state.
2. The wait(), notify(), and notifyAll() methods must be executed in synchronized code.
3. The notify() and notifyAll() methods can be used to signal and move waiting threads to ready-to-run state.
4. The Thread class is an abstract class.

I think 1, 2,3 are correct. Am i right?
Kudret Serin
Ranch Hand

Joined: Aug 02, 2005
Posts: 165

wait method is defined in Object not in Thread.
Ramya Iyer
Ranch Hand

Joined: Jul 29, 2003
Posts: 66
Thanks. Your explanation helps.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: javaprepare.com mock exam
 
Similar Threads
Thread wait
synchronized block?
sample question on threads
why this??
Help for Mock Exam