Java OCA OCP Practice Question 142

Question

How can a class that is run as a thread be defined?

  • A. By subclassing the Thread class.
  • B. By implementing the Throwable interface.
  • C. By implementing the Multithread interface.
  • D. By implementing the Runnable interface.


A and D.

Note

Subclassing Thread and implementing Runnable are the two approached to creating a thread class.




PreviousNext

Related