my dog learned polymorphism*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "threads" Watch "threads" New topic
Author

threads

anshi kohli
Ranch Hand

Joined: Jun 30, 2007
Posts: 35
Note, the methods stop suspend and resume have been deprecated with the Java2 release, and you may get questions on the exam that expect you to know this.


so shud we mark stop suspend as the answers if it asks::

Which of the following are methods of the Thread class?

1) yield()
2) sleep(long msec)
3) go()
4) stop()


kindly shud we mark as an optin???
Burkhard Hassel
Ranch Hand

Joined: Aug 25, 2006
Posts: 1274
I'd say yes.
API says that it is a method of thread, and question didn't ask if we should use it or not.

Bu.
Manfred Klug
Ranch Hand

Joined: Jun 04, 2007
Posts: 377
Originally posted by anshi kohli:
so shud we mark stop suspend as the answers
In the SCJP 5 exam you know how many answers are correct. If three answers are needed mark it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: threads
 
Similar Threads
suspend() & resume() - problem
Thread stop?
Oh boy !!!! Threads again.
Deprecated Methods
Deprecated Methods