Multiple choice technology programming languages

A class can be converted to a thread by implementing the interface

  1. Thread

  2. Runnable

  3. Implements

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Java, to make a class runnable as a thread, you implement the Runnable interface which contains the run() method. This is the preferred way over extending the Thread class because it allows your class to extend another class if needed. Option A is incorrect because Thread is a class, not an interface you implement.