Question
In Java, which comparison about Two-Dimensional Arrays is accurate?
- There is no practical difference in behavior, performance, or API design when Two-Dimensional Arrays is involved.
- The oldest option related to Two-Dimensional Arrays is always the right production choice regardless of context.
- Rectangular matrices keep the same column count per row, while jagged arrays allow different row lengths.
- Differences around Two-Dimensional Arrays are mostly cosmetic, so correctness and maintainability do not change.
Hint
Focus on the behavior or tradeoff, not just the keyword.
Answer and rationale
Correct answer: C. Rectangular matrices keep the same column count per row, while jagged arrays allow different row lengths.
Rectangular matrices keep the same column count per row, while jagged arrays allow different row lengths. This is the comparison that usually separates memorization from understanding.
Track: Java