Which of the following states is not a valid thread state in Java?

  • Blocked
  • Running
  • Sleeping
  • Terminated
In Java, the valid thread states are Running, Blocked, Terminated, and Sleeping. "Running" is not a valid thread state because it's not used to describe the state of a thread in Java. A running thread is simply a thread that is currently executing its code.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *