Courseiva
Question 20 of 481
Primitives, Strings and OperatorsmediumMultiple SelectObjective-mapped

1Z0-811 Primitives, Strings and Operators Practice Question

Which TWO statements are true about the String class in Java? (Choose 2)

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

Strings are immutable.

The correct answers are C and E. Option C is true because String objects in Java are immutable; once created, they cannot be changed. Option E is true because the intern() method places the string into the string pool if it is not already present, allowing reuse of string literals. Option A is false: String is immutable regardless of whether it is created with new or a literal. Option B is false: String does not implement Cloneable; it implements Serializable, Comparable, and CharSequence. Option D is false: methods like toUpperCase() return a new String object and do not modify the original.

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 is mutable if created with new.

    Why it's wrong here

    All Strings are immutable.

  • String implements the Cloneable interface.

    Why it's wrong here

    String does not implement Cloneable.

  • Strings are immutable.

    Why this is correct

    Once created, cannot change.

  • String objects can be modified using methods like toUpperCase().

    Why it's wrong here

    toUpperCase() returns new String, does not modify original.

  • The intern() method can add a string to the string pool.

    Why this is correct

    intern() returns canonical representation.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 23, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.