Infosys interview question

basic technical questions on java