Infosys interview question

java basics. focused on Spring