1Z0-829 Working with Arrays and Collections Practice Question
Which TWO statements about Arrays.asList() are true? (Select two.)
⚠ Common exam trap
Candidates often assume `Arrays.asList()` returns a regular `java.util.ArrayList` and therefore supports add/remove, or they forget that the returned list is fixed-size and backed by the original array, leading them to select options A or B.
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
✓
It returns a fixed-size list backed by the original array.
`Arrays.asList()` returns a fixed-size list backed by the original array, meaning the list's size cannot be changed (no add or remove operations allowed). Option E is correct because any modification to the returned list (e.g., setting an element) directly modifies the underlying array, and vice versa, as the list is a view of the array.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
It supports adding and removing elements.
Why it's wrong here
The list is fixed-size; add and remove throw UnsupportedOperationException.
- ✗
It returns a new ArrayList with a copy of the elements.
Why it's wrong here
It returns a List view, not a new ArrayList.
- ✗
It can be used to convert an array to a mutable list if wrapped with new ArrayList<>().
Why it's wrong here
This is a common usage, but it is not a property of Arrays.asList itself; the statement is about the method.
- ✓
It returns a fixed-size list backed by the original array.
Why this is correct
The returned list size is fixed and changes to the list are reflected in the array.
- ✓
Changes to the returned list are reflected in the original array.
Why this is correct
Because it is backed by the array, modifications to the list (like set) change the array.
Go deeper
Related to this question
About these practice questions
One of 513 original 1Z0-829 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-829 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-829 exam.