Accenture interview question

Basic of OOPS and Java