Infosys interview question

object oriented programming concept in java