Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which one of these lists contains only deprecated Thread methods?

  • A.stop, join, yield
  • B.suspend, interrupt, sleep
  • C.resume, setPriority, isAlive
  • D.stop, suspend, resume

Answer: D

stop, suspend and resume are the deprecated trio, together with countStackFrames. join, yield, interrupt, sleep, setPriority and isAlive are all supported. The three were withdrawn together because each can leave locks or state inconsistent.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.