What is the name of the method used to start a thread execution?
-
init()
-
start()
-
run()
-
resume()
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.