1Z0-829 Java 17 Records, Sealed Types, Switch, and Text Blocks Guide
April 13, 2026
Study 1Z0-829 Java 17 Records, Sealed Types, Switch, and Text Blocks: key concepts, common traps, and exam decision cues.
On this page
Modern Java 17 questions are often won by candidates who remember that these features change what is legal and what is concise, not just how the code looks.
Feature-choice map
If the stem is mainly about…
Better first instinct
concise immutable-style data carrier
record semantics
closed type family
sealed hierarchy rules
safe type test plus narrowing
pattern matching
multiline string literal
text block behavior
value-producing branch logic
switch expression rules
What the exam is really testing
If the code shows…
Strong reading
record declaration
generated members and constructor rules matter
sealed parent
permitted-subclass control is under test
instanceof pattern
narrowing and scope matter
yield or arrow cases
switch-expression behavior matters
Common traps
Trap
Better rule
treating records as simple syntax sugar
generated members and constructor rules still matter