Question
Which statement about Arrays and Indexed Access is the strongest interview answer?
- Arrays store elements in a fixed-size indexed structure and give constant-time access by position.
- Arrays and Indexed Access is mostly a naming style choice and has little effect on runtime or design.
- Arrays and Indexed Access exists mainly to reduce the number of Java files in a project.
- Arrays and Indexed Access matters only for frontend frameworks, not for core Java applications.
Hint
Start with the core rule behind Arrays and Indexed Access.
Answer and rationale
Correct answer: A. Arrays store elements in a fixed-size indexed structure and give constant-time access by position.
Arrays store elements in a fixed-size indexed structure and give constant-time access by position. This is the base concept interviewers commonly test first.
Track: Java