• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

threads

 
anshi kohli
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1274
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 377
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic