Infosys interview question

some basic java questions