Infosys interview question

Output of Java programs related to basic oops concepts