Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

a question about stop a thread  RSS feed

 
Simo Hayha
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which two cannot directly cause a thread to stop executing?
A.calling the yield method
B.calling the wait method on an object
C.calling the notify method on an object
D.calling the notifyAll method on an object
E.calling the start method on another thread object
Answer:A,E
i doubt with the answer,i think c d and e is right
am i worng?
right here waiting gor your explain,thanks
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question has been discussed here:
http://www.coderanch.com/t/238746/java-programmer-SCJP/certification/Questions-Thread-Exception
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!