Browse Oracle Certification Guides

1Z0-829 Java 17 Records, Sealed Types, Switch, and Text Blocks Guide

Study 1Z0-829 Java 17 Records, Sealed Types, Switch, and Text Blocks: key concepts, common traps, and exam decision cues.

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
ignoring sealed hierarchy clues restricted extension changes reasoning
thinking text blocks are a new string type they still produce String

Quiz

Loading quiz…
Revised on Sunday, May 10, 2026