Accenture interview question

about java and other stuffs