Infosys interview question

Basic core java and adv java,