Back to the 2026 paper

Module 4: Exception Handling

20267m

Construct a thread life-cycle diagram showing the major states through which a Java thread can pass. Analyse transitions caused by start(), scheduling, waiting and termination.

Worked SolutionAI Assisted

Java thread life cycle

A Java thread may be NEW, RUNNABLE (eligible to run, including running), BLOCKED, WAITING, TIMED_WAITING, or TERMINATED. The scheduler decides when a runnable thread gets CPU time.

MermaidDiagram
Rendering diagram…

Calling start() schedules a new thread; calling run() directly is an ordinary method call. A terminated thread cannot be restarted.

Similar questions

Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.