• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

which one I should take it correctly

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi This question

Which methods may cause a thread to stop executing?
<><color="blue">
1 sleep();
2 stop();
3 yield();
4 wait();
5 notify();
</color>
the answers given are
1,2,3,4
but I have read somewhere since stop() is depricated it should
NOT BE CONSIDERD
please correct me if I am wrong
------------------
coffee drinker
[This message has been edited by amit mawkin (edited December 06, 2001).]
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's perfectly right. I think the author of this question worded it before stop had been deprecated. The exam will not propose you deprecated methods so you shouldn't worry about it
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
amit mawkin
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this question was from a site called 4test.com
as suggested by maha
also Marcus in his second exam has also given 1 question which goes as follows

Which of the following are methods of the thread class ?
1.yield()
2. sleep(long msec)
3.go()
4.stop()
and he provides answers as 1,2,4

but i think i read in RHE and he also advises the same like you.
thanks for helping Val

------------------
coffee drinker
 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic