DEVFYI - Developer Resource - FYI

What are the two basic ways in which classes that can be run as threads may be defined?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

357. What are the two basic ways in which classes that can be run as threads may be defined?

A thread class may be declared as a subclass of Thread, or it may implement the Runnable interface.

(Continued on next question...)

Other Interview Questions