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

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.