Infosys Interview Question

basic questions in java