Infosys Interview Question

all questions based on Java