1Z0-811 Arrays and Methods Practice Question
Which three statements about arrays are correct? (Choose three.)
⚠ Common exam trap
Candidates often confuse the compile-time constant requirement for array lengths with the fact that the length can be a runtime expression, leading them to incorrectly select option C as correct.
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
✓
Arrays are objects in Java.
In Java, arrays are objects that are dynamically created and can be assigned to variables of type Object, cloned via the clone() method, and have a length field (not a method). They inherit from java.lang.Object and are treated as reference types, even when they store primitive values.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The size of an array can change after creation.
Why it's wrong here
Arrays have a fixed length; cannot be resized.
- ✓
Arrays are objects in Java.
Why this is correct
Arrays inherit from Object and have methods like clone().
- ✗
The length of an array must be specified at compile time with a constant expression.
Why it's wrong here
Length can be specified with a variable (e.g., new int[n]), determined at runtime.
- ✓
Arrays can store both primitive and object types.
Why this is correct
For example, int[] stores primitives, String[] stores objects.
- ✓
Array indices start at 0.
Why this is correct
Standard Java array indexing.
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.