Infosys interview question

Java object oriented programming questions