Multiple choice technology programming languages

what are the ways to instantiate a therad

  1. Extend the java.lang.Throwable class

  2. Extend the java.lang.Thread class

  3. Extend the java.lang.Runnable

  4. Implement the Runnable interface

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

Threads in Java can be created by extending the Thread class and overriding its run() method, or by implementing the Runnable interface and passing an instance to a Thread constructor. Runnable is an interface (not a class), so you implement it, not extend it. Throwable is for exceptions, not threads.