Question
In Java, which comparison about Dynamic Arrays and Resizing is accurate?
- There is no practical difference in behavior, performance, or API design when Dynamic Arrays and Resizing is involved.
- The oldest option related to Dynamic Arrays and Resizing is always the right production choice regardless of context.
- Differences around Dynamic Arrays and Resizing are mostly cosmetic, so correctness and maintainability do not change.
- It trades occasional expensive resize steps for fast average appends and efficient indexed access.
Hint
Focus on the behavior or tradeoff, not just the keyword.
Answer and rationale
Correct answer: D. It trades occasional expensive resize steps for fast average appends and efficient indexed access.
It trades occasional expensive resize steps for fast average appends and efficient indexed access. This is the comparison that usually separates memorization from understanding.
Track: Java