1Z0-811 Java Basics and Syntax Practice Question
Which THREE of the following are primitive data types in Java?
⚠ Common exam trap
Oracle often tests the distinction between primitive types and their corresponding wrapper classes or commonly used reference types like String, leading candidates to mistakenly include String or void as primitives.
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
✓
boolean
(boolean) is correct because boolean is one of the eight primitive data types in Java, representing a single bit of information with only two possible values: true or false. It is not an object and does not have methods, unlike reference types such as Boolean (the wrapper class).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
void
Why it's wrong here
void is not a data type; it indicates no return.
- ✓
boolean
Why this is correct
Primitive boolean type.
- ✓
int
Why this is correct
Primitive integer type.
- ✗
String
Why it's wrong here
String is a reference type, not primitive.
- ✓
char
Why this is correct
Primitive character type.
Go deeper
Related to this question
About these practice questions
Courseiva writes every 1Z0-811 question from scratch — 481 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.