Accenture interview question

Basics in core and advanced java