PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

Java · Theory

Thread Life Cycle in Java

← All stacks

Theory

108/270

Thread Life Cycle in Java

A thread goes through states: New (created) → Runnable (start() called, waiting for CPU) → Running (CPU is executing it) → Blocked/Waiting (sleep, join, lock) → Terminated (finished).

You cannot restart a terminated thread. start() only from New. Calling start() twice throws IllegalThreadStateException.

Draw the states in viva. Don’t invent extra states.

Let's take this on the board with one tiny Main class — no extra files. Thread Life Cycle in Java — start() schedules the thread; main also prints — order may vary. Start from main, go line by line, and stop at each print. That output is the proof for Thread Life Cycle.

Diagram
New  --start()-->  Runnable
                       │ CPU
                       ▼
                    Running
                   /       \
           sleep/join      done
              │              │
              ▼              ▼
          Waiting        Terminated
Exam tip

Draw five states. Say start() only once. Cannot restart a dead thread.

Example

// Thread demo
public class Main {
  public static void main(String[] args) {
    Thread t = new Thread(() -> System.out.println("Hi from thread"));
    t.start();
    System.out.println("Hi from main");
  }
}

Thread Life Cycle in Java — start() schedules the thread; main also prints — order may vary.

Short notes

  • DefNew → Runnable → Running → Waiting/Blocked → Terminated.
  • Rulestart() from New. Cannot restart after Terminated.
  • Trapstart() twice → IllegalThreadStateException.
  • Remembersleep/join/lock can move a thread to waiting.

Questions

1

Name the thread states.

2

Can you start a thread twice?

Previous← Multithreading in JavaNextHow to Create Thread in Java? →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.