Working with Java data types
4 practice questions under this official exam objective (1Z0-819) — each with the community-verified answer, a full option-by-option explanation and instant feedback.
Java var ArrayList Reassignment Compilation in 1Z0-819
This 1Z0-819 question tests local variable type inference with generic collections: `var listA = new ArrayList()` and `var listC = new ArrayList()` co
ArrayStoreException in Java Array Assignment
This question tests understanding of Java array covariance and runtime type safety, demonstrating that assigning an incompatible object to a covariant
Which Overload Runs for the Binary Literal 0B1010_1010_0101_1001_0110?
A binary literal such as 0B1010_1010_0101_1001_0110 with underscores but no L suffix is typed as an int, so a call to an overloaded method binds to th
Which BiPredicate Lambda Declaration Using var Is Valid?
This 1Z0-819 item tests the Java lambda parameter syntax rules for var: a lambda that declares any parameter with var must use var on every parameter