Accenture interview question

basic questions in oops in java