Loading…
Loading…
Ten exam-style questions on Java's primitive types and ranges, numeric literals in different bases, underscore rules, primitives versus references, wrapper classes and their parse and valueOf methods, and text blocks, with explanations.
Practice questions for the article Java Primitive Types, Literals, Wrapper Classes and Text Blocks.
The questions follow Java 21 rules, as on the 1Z0-830 exam. Literal questions reward slow reading: check every prefix, suffix and underscore. Aim for at least 8 out of 10 before moving on.
Quiz path: step 5. Take the quizzes in this order, after reading each article.
Previous quiz: Constructors, Instance Initializers and Order of Initialization (OCP 21)
Next quiz: Identifiers, Variable Initialization and var (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.