J.IX · Java 25 practice question

In JEP 506 (Scoped Values), what does the Comprehensibility goal require?

Choose one answer
Check answer and explanation

Correct answer: The lifetime of shared data should be apparent from the syntactic structure of code.

Explanation

JEP 506's Comprehensibility goal states that the lifetime of shared data should be apparent from the syntactic structure of code.

Common trap

Scoped values are immutable within a scope and are never required to be serialized to disk.

Source: JEP 506: Scoped Values — Goals
Checked against the cited text on 2026-11-27.

Report an error in this question