Multiple choice general knowledge science & technology

What is the name of the method used to start a thread execution?

  1. init()

  2. start()

  3. run()

  4. resume()

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

In Java threading, the start() method is used to begin execution of a thread. When start() is called, the JVM creates a new thread and invokes the run() method within that new thread. The init() method is not a standard thread method, run() contains the thread's body but doesn't start execution, and resume() is deprecated. The start() method is specifically designed for thread initialization and execution.