Infosys Interview Question

All basic questions in java