Courseiva
Primitives, Strings and OperatorseasyMultiple ChoiceObjective-mapped

1Z0-811 Primitives, Strings and Operators Practice Question

Which of the following is a valid Java primitive type?

⚠ Common exam trap

It's easy for candidates to confuse case-sensitive naming (e.g., `Char` vs `char`) or mistake commonly used reference types like `String` and `Integer` for primitives because they are frequently used in everyday coding.

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 one of the eight primitive data types defined in the Java Language Specification (JLS §4.2). It represents a single bit of information with only two possible values: `true` or `false`, and is not an object or a 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.

  • boolean

    Why this is correct

    Correct: boolean is one of the eight primitive types in Java.

  • String

    Why it's wrong here

    Incorrect: String is a class (reference type), not a primitive.

  • Integer

    Why it's wrong here

    Incorrect: Integer is a wrapper class for int, not a primitive.

  • Char

    Why it's wrong here

    Incorrect: the primitive type is 'char' (lowercase), not 'Char'.

About these practice questions

This 1Z0-811 question is part of Courseiva's 481-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.