Accenture interview question

Core java concepts