Infosys interview question

Question related to java framework