Java Primitives, Wrapper Classes, Operators and Casting (1Z0-831)
Primitives are Java's eight built-in value types (byte, short, char, int, long, float, double and boolean), and wrapper classes such as Integer and Double are the objects that box them. Objective 1.1 of the Java SE 25 Developer exam asks you to use both and to evaluate arithmetic and boolean expressions exactly as the compiler and JVM do: which statements compile, which conversions need a cast, how precedence groups an expression, when operators short-circuit, and what the Math API returns. This lesson covers literals and ranges, numeric promotion, constant narrowing, casting, compound assignment and increments, integer and floating-point arithmetic, overflow, precedence and concatenation, boolean operators, the conditional operator, autoboxing and wrapper comparison, and the Math methods. Every code example was compiled and run on JDK 25.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read 48 more lessons — your progress is saved.
Source
This lesson covers the "Handling Date, Time, Text, Numeric and Boolean Values" domain of the official 1Z0-831 exam guide. Vendors revise their guides — check the source for the current version.
- Java SE 25 Developer Professional (1Z0-831) exam page and topics — Oracle University
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.