Infosys interview question

Question related to basic core java, DBMS queries and spring annotations