Java OCA OCP Practice Question 1251

Question

Which of the following methods in the Thread class are deprecated?

  • A. suspend() and resume()
  • B. wait() and notify()
  • C. start() and stop()
  • D. sleep() and yield()


A.

Note

The suspend() and resume() methods were deprecated in the Java 2 release.

They still appear on the API page for Thread but should not be used.




PreviousNext

Related