Multiple choice general knowledge science & technology

Which will contain the body of the thread?

  1. run()

  2. start()

  3. stop()

  4. main()

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

In Java's threading model, the run() method contains the body or actual code that the thread executes. When a thread is started using start(), it internally calls run() to execute the thread's task. The start() method only initiates thread execution, stop() is deprecated, and main() is the program entry point unrelated to threading. The run() method must be overridden or implemented to define thread behavior.