1Z0-829 Java 17 Primitives, Wrappers, var, Casting and Operators Guide
April 13, 2026
Study 1Z0-829 Java 17 Primitives, Wrappers, var, Casting and Operators: key concepts, common traps, and exam decision cues.
Most early Java exam misses are not deep. They come from skipping one conversion rule, one wrapper null risk, or one operator side effect.
Type-choice map
| If the stem is mainly about… |
Better first instinct |
| primitive math and assignment legality |
trace widening, narrowing, and promotions explicitly |
| wrapper behavior |
watch for boxing, unboxing, and possible NullPointerException |
var |
confirm it is a local variable with an initializer that makes the type obvious |
| operators |
check precedence and side effects before predicting output |
What the exam is really testing
| If the code shows… |
Strong reading |
| mixed primitives |
promotion rules decide the result type |
| wrapper arithmetic |
unboxing may happen and null is dangerous |
| compound assignment |
implicit cast behavior may differ from plain assignment |
| pre/post increment |
evaluation order matters more than intuition |
Common traps
| Trap |
Better rule |
| assuming boxing is always the first legal conversion |
primitive widening often wins first |
| forgetting null wrapper use can still compile |
runtime failure may be the real test |
using var without a real inferred type |
var needs a local initializer-driven type |
Quiz
Loading quiz…
Revised on Sunday, May 10, 2026