Courseiva
Primitives, Strings and OperatorshardMultiple SelectObjective-mapped

1Z0-811 Primitives, Strings and Operators Practice Question

Which three statements about String immutability are true? (Choose three)

⚠ Common exam trap

Oracle often tests the misconception that calling a method on a String changes the original object, when in fact all such methods return a new String, leaving the original unchanged.

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

The intern() method returns a String from the pool

The `intern()` method returns a canonical representation of the string from the string pool, ensuring that strings with the same content share the same memory reference, which is a key aspect of immutability and memory optimization in Java.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • String objects can be modified after creation

    Why it's wrong here

    False; Strings are immutable.

  • String objects can be changed by calling methods

    Why it's wrong here

    False; methods return new Strings, not modify original.

  • The intern() method returns a String from the pool

    Why this is correct

    True; intern() returns canonical representation.

  • String concatenation creates a new String

    Why this is correct

    True; concatenation returns new String.

  • StringBuilder can be used to create mutable strings

    Why this is correct

    True; StringBuilder is mutable.

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 →

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.