J.IX · Java 25 practice question
How does JEP 506 describe the Performance goal of Scoped Values?
Check answer and explanation
Correct answer: Data should be efficiently sharable across a large number of threads.
Explanation
JEP 506's Performance goal is that data should be efficiently sharable across a large number of threads.
Common trap
Deep copying on every call would hurt performance, and Scoped Values do not bypass garbage collection.
Source: JEP 506: Scoped Values — Goals
Checked against the cited text on 2026-11-27.