Accenture interview question

Entirely based on basic Core Java questions