1Z0-811 Primitives, Strings and Operators Practice Question
Which two of the following are primitives in Java? (Choose two.)
⚠ Common exam trap
Oracle often tests the distinction between primitives (lowercase names like `boolean`) and their wrapper classes (capitalized names like `Boolean`), causing candidates to mistakenly select the wrapper class as a primitive.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
byte
A is correct because `byte` is a primitive data type in Java that stores 8-bit signed integers, ranging from -128 to 127. It is one of the eight primitive types defined in the Java language specification, not an object or reference type.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
byte
Why this is correct
Correct: byte is a primitive type.
- ✓
char
Why this is correct
Correct: char is a primitive type.
- ✗
String
Why it's wrong here
Incorrect: String is a class.
- ✗
Integer
Why it's wrong here
Incorrect: Integer is a wrapper class.
- ✗
Boolean
Why it's wrong here
Incorrect: Boolean (capital B) is the wrapper class; the primitive is 'boolean'.
Go deeper
Related to this question
About these practice questions
One of 481 original 1Z0-811 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-811 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-811 exam.