Reported in a candidate post, Jul 2025
Is an ArrayList of an interface type holding implementing objects valid
Filed under VMware
The question
Given an interface and two implementing classes, with another class holding an ArrayList of the interface type containing their objects, the candidate was asked whether that design is correct.
No write-up yet. Related questions below have one.
Related VMware questions
Collected from public candidate posts and coding forums. Updated Nov 2026.