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

Q

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

✍: Guest

A

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

2013-01-31, 1914👍, 0💬