This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "threads" Watch "threads" New topic


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.

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.
I agree. Here's the link:
subject: threads
It's not a secret anymore!