J.VI · Java 25 practice question
A developer starts a new Thread from the main thread to run a background computation. According to the Java SE 25 Thread specification, how does the newly started thread execute relative to the thread that started it?
Check answer and explanation
Correct answer: The new thread executes concurrently with the thread that started it.
Explanation
Once started, the newly created thread is scheduled to run concurrently alongside the thread that invoked start.
Common trap
Blocking the starting thread automatically is tempting for developers confusing start() with a synchronous call or join(), but start returns immediately while the new thread runs concurrently. Waiting until the starting thread exits its current method is tempting as a perceived safety guarantee, yet the JVM does not delay thread execution until the caller returns.
Source: Java SE 25 API: Thread
Checked against the cited text on 2026-11-25.