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.
PreviousNextRelated