Accenture interview question

Question on java oops concepts