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

Discussion

Which of these Thread methods is deprecated?

  • A.interrupt
  • B.setDaemon
  • C.stop
  • D.join

Answer: C

stop is deprecated, as are suspend and resume, because they leave shared state in an unpredictable condition. join, interrupt and setDaemon are all current API. Compiling a call to a deprecated method still succeeds; the compiler only warns.

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

Post your comment

Please log in or register to post a comment.