Infosys interview question

All about JAva and OOPS