Infosys interview question

All Opps concepts in java