Capgemini interview question

Oops concepts in core java