Multiple choice technology architecture

Can we restart a thread after it has died?

  1. Yes, we can restart a thread after it has died

  2. No, we can’t restart a thread after it has died. You will have to create a new thread.

  3. None of the above.

  4. Cant say. Not predictable.

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

Once a thread completes execution (dies), it cannot be restarted. The Thread class's start() method can only be called once per thread instance. Attempting to restart a dead thread throws an IllegalThreadStateException. You must create a new Thread instance to run the task again.