Question
Which statement about Two-Dimensional Arrays is the strongest interview answer?
- Two-Dimensional Arrays is mostly a naming style choice and has little effect on runtime or design.
- In Java, a two-dimensional array is an array of arrays, so each row is its own array object.
- Two-Dimensional Arrays exists mainly to reduce the number of Java files in a project.
- Two-Dimensional Arrays matters only for frontend frameworks, not for core Java applications.
Hint
Start with the core rule behind Two-Dimensional Arrays.
Answer and rationale
Correct answer: B. In Java, a two-dimensional array is an array of arrays, so each row is its own array object.
In Java, a two-dimensional array is an array of arrays, so each row is its own array object. This is the base concept interviewers commonly test first.
Track: Java