Accenture interview question

Java basic question - polymorphism, collection