Infosys interview question

About java 8 methods and spring framework