Multiple choice technology web technology

What method must be implemented by all threads?

  1. destroy()

  2. start()

  3. run()

  4. none of the above

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

In Java, every Thread must implement the run() method, which contains the code that executes in the thread. The start() method is called to begin execution but is not implemented by subclasses - run() is the method you override with your thread's logic.