Accenture interview question

Core java questions from javatpoint